org.wings.externalizer
Class ExternalizedResource

java.lang.Object
  extended by org.wings.externalizer.ExternalizedResource

public class ExternalizedResource
extends Object

Author:
Armin Haaf

Constructor Summary
ExternalizedResource(Object obj, Externalizer ext, String mimeType, Collection headers, int flags)
           
 
Method Summary
 boolean deliverOnce()
           
 boolean equals(ExternalizedResource e)
          If the managed externalized resource and the externalized manager are the same, then both ExternalizedResource objects are regarded equal.
 boolean equals(Object o)
           
 String getExtension()
           
 Externalizer getExternalizer()
           
 int getFlags()
           
 Collection getHeaders()
           
 String getId()
           
 long getLastModified()
           
 String getMimeType()
           
 Object getObject()
           
 int hashCode()
          The HashCode of the externalized resource is the hash code of the to be externalized object (the externalized resource).
 boolean isFinal()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalizedResource

public ExternalizedResource(Object obj,
                            Externalizer ext,
                            String mimeType,
                            Collection headers,
                            int flags)
Method Detail

getMimeType

public final String getMimeType()

getObject

public final Object getObject()

getExternalizer

public final Externalizer getExternalizer()

getHeaders

public final Collection getHeaders()

deliverOnce

public final boolean deliverOnce()

isFinal

public final boolean isFinal()

getExtension

public final String getExtension()

getFlags

public final int getFlags()

getLastModified

public final long getLastModified()

getId

public String getId()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public final int hashCode()
The HashCode of the externalized resource is the hash code of the to be externalized object (the externalized resource). Together with the implementation of the equals(Object)-Method, this makes sure, that the same resource gets the same ID.

Overrides:
hashCode in class Object
Returns:
the has code of the externalized object.

equals

public final boolean equals(ExternalizedResource e)
If the managed externalized resource and the externalized manager are the same, then both ExternalizedResource objects are regarded equal.

Returns:
true, if the other externalized resource equals this resource regarding the key members.

equals

public final boolean equals(Object o)
Overrides:
equals in class Object
Returns:
true, if the other object is an ExternalizedResource and equals(ExternalizedResource) returns true.


wingS Swings ;-)