Descriptor for available representations of a resource. It contains all the
important metadata about a representation but is not able to actually serve
the representation's content itself. For this, you need to use the
Representation subclass.
author: Jerome Louvel (contact@noelios.com)
Field Summary
final public static long
UNKNOWN_SIZE Indicates that the size of the representation can't be known in advance.
Returns the list of encodings applied to the entity-body. An
"IllegalArgumentException" exception is thrown when adding a null
encoding to this list.
The list of encodings applied to the entity-body.
Returns an optional identifier. This is useful when the representation is
accessible from a location separate from the representation's resource
URI, for example when content negotiation occurs.
The identifier.
Sets the optional identifier. This is useful when the representation is
accessible from a location separate from the representation's resource
URI, for example when content negotiation occurs.
Parameters: identifier - The identifier.
setIdentifier
public void setIdentifier(String identifierUri)(Code)
Sets the identifier from a URI string.
Parameters: identifierUri - The identifier to parse.
Sets the media type.
Parameters: mediaType - The media type.
setModificationDate
public void setModificationDate(Date modificationDate)(Code)
Sets the last date when this representation was modified. If this
information is not known, pass null.
Parameters: modificationDate - The modification date.