|
||||||||||
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 |
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(java.lang.String name)
Constructor. |
|
Encoding(java.lang.String name,
java.lang.String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
static Encoding |
valueOf(java.lang.String name)
Returns the encoding associated to a name. |
Methods inherited from class org.restlet.data.Metadata |
---|
getDescription, getName, 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 GZIP
public static final Encoding ZIP
public static final Encoding COMPRESS
public static final Encoding DEFLATE
public static final Encoding IDENTITY
public static final Encoding FREEMARKER
public static final Encoding VELOCITY
Constructor Detail |
---|
public Encoding(java.lang.String name)
name
- The name.public Encoding(java.lang.String name, java.lang.String description)
name
- The name.description
- The description.Method Detail |
---|
public static Encoding valueOf(java.lang.String name)
name
- The name.
public boolean equals(java.lang.Object object)
equals
in class Metadata
public int hashCode()
hashCode
in class Metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |