|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Metadata
public class Metadata
Description of data contained in a resource representation. "A representation
consists of data, metadata describing the data, and, on occasion, metadata to
describe the metadata (usually for the purpose of verifying message
integrity).
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
Constructor Summary | |
---|---|
Metadata(java.lang.String name)
Constructor. |
|
Metadata(java.lang.String name,
java.lang.String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getDescription()
Returns the description. |
java.lang.String |
getName()
Returns the name (ex: "text/html" or "compress" or "iso-8851-1"). |
int |
hashCode()
|
java.lang.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(java.lang.String name)
name
- The unique name.public Metadata(java.lang.String name, java.lang.String description)
name
- The unique name.description
- The description.Method Detail |
---|
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String getDescription()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |