|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Metadata
org.restlet.data.Encoding
public final class Encoding
Modifier of a representation's media type. Useful to apply compression without losing the identity of the underlying media type.
Field Summary | |
---|---|
static Encoding |
ALL
All encodings acceptable. |
static Encoding |
COMPRESS
The common Unix file compression. |
static Encoding |
DEFLATE
The zlib format defined by RFC 1950 and 1951. |
static Encoding |
DEFLATE_NOWRAP
The zlib format defined by RFC 1950 and 1951, without wrapping. |
static Encoding |
FREEMARKER
The FreeMarker encoding. |
static Encoding |
GZIP
The GNU Zip encoding. |
static Encoding |
IDENTITY
The default (identity) encoding. |
static Encoding |
VELOCITY
The Velocity encoding. |
static Encoding |
ZIP
The Info-Zip encoding. |
Constructor Summary | |
---|---|
Encoding(String name)
Constructor. |
|
Encoding(String name,
String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
Metadata |
getParent()
Returns the parent metadata if available or null. |
int |
hashCode()
|
boolean |
includes(Metadata included)
Indicates if a given encoding is included in the current one. |
static Encoding |
valueOf(String name)
Returns the encoding associated to a name. |
Methods inherited from class org.restlet.data.Metadata |
---|
getDescription, getName, isCompatible, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Encoding ALL
public static final Encoding COMPRESS
public static final Encoding DEFLATE
public static final Encoding DEFLATE_NOWRAP
public static final Encoding FREEMARKER
public static final Encoding GZIP
public static final Encoding IDENTITY
public static final Encoding VELOCITY
public static final Encoding ZIP
Constructor Detail |
---|
public Encoding(String name)
name
- The name.public Encoding(String name, String description)
name
- The name.description
- The description.Method Detail |
---|
public static Encoding valueOf(String name)
name
- The name.
public boolean equals(Object object)
equals
in class Metadata
public Metadata getParent()
Metadata
getParent
in class Metadata
public int hashCode()
hashCode
in class Metadata
public boolean includes(Metadata included)
Examples:
includes
in class Metadata
included
- The encoding to test for inclusion.
Metadata.isCompatible(Metadata)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |