|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Metadata
public abstract class Metadata
Representations metadata for content negotiation. "Metadata is in the form of name-value pairs, where the name corresponds to a standard that defines the value's structure and semantics. Response messages may include both representation metadata and resource metadata: information about the resource that is not specific to the supplied representation." Roy T. Fielding
Preference
,
Source dissertationConstructor Summary | |
---|---|
Metadata(String name)
Constructor. |
|
Metadata(String name,
String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getDescription()
Returns the description. |
String |
getName()
Returns the name (ex: "text/html" or "compress" or "iso-8851-1"). |
abstract Metadata |
getParent()
Returns the parent metadata if available or null. |
int |
hashCode()
|
abstract boolean |
includes(Metadata included)
Indicates if a given metadata is included in the current one. |
boolean |
isCompatible(Metadata otherMetadata)
Checks if this metadata is compatible with the given metadata. |
String |
toString()
Returns the metadata name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Metadata(String name)
name
- The unique name.public Metadata(String name, String description)
name
- The unique name.description
- The description.Method Detail |
---|
public boolean equals(Object object)
equals
in class Object
public String getDescription()
public String getName()
public abstract Metadata getParent()
public int hashCode()
hashCode
in class Object
public abstract boolean includes(Metadata included)
MediaType.ALL
includes all
media types.
Examples:
included
- The metadata to test for inclusion.
isCompatible(Metadata)
public boolean isCompatible(Metadata otherMetadata)
Examples:
otherMetadata
- The other metadata to compare.
includes(Metadata)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |