|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.Restlet
org.restlet.routing.Filter
org.restlet.engine.application.Decoder
public class Decoder
Filter uncompressing entities. Concurrency note: instances of this class or its subclasses can be invoked by several threads at the same time and therefore must be thread-safe. You should be especially careful when storing state in member variables.
| Field Summary |
|---|
| Fields inherited from class org.restlet.routing.Filter |
|---|
CONTINUE, SKIP, STOP |
| Constructor Summary | |
|---|---|
Decoder(Context context)
Constructor to only decode request entities before handling. |
|
Decoder(Context context,
boolean decodingRequest,
boolean decodingResponse)
Constructor. |
|
| Method Summary | |
|---|---|
void |
afterHandle(Request request,
Response response)
Allows filtering after its handling by the target Restlet. |
int |
beforeHandle(Request request,
Response response)
Allows filtering before its handling by the target Restlet. |
boolean |
canDecode(Representation representation)
Indicates if a representation can be decoded. |
Representation |
decode(Representation representation)
Decodes a given representation if its encodings are supported by NRE. |
boolean |
isDecodingRequest()
Indicates if the request entity should be decoded. |
boolean |
isDecodingResponse()
Indicates if the response entity should be decoded. |
| Methods inherited from class org.restlet.routing.Filter |
|---|
doHandle, getNext, handle, hasNext, setNext, setNext, start, stop |
| Methods inherited from class org.restlet.Restlet |
|---|
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Decoder(Context context)
context - The context.
public Decoder(Context context,
boolean decodingRequest,
boolean decodingResponse)
context - The context.decodingRequest - Indicates if the request entity should be decoded.decodingResponse - Indicates if the response entity should be decoded.| Method Detail |
|---|
public void afterHandle(Request request,
Response response)
afterHandle in class Filterrequest - The request to filter.response - The response to filter.
public int beforeHandle(Request request,
Response response)
beforeHandle in class Filterrequest - The request to filter.response - The response to filter.
public boolean canDecode(Representation representation)
representation - The representation to test.
public Representation decode(Representation representation)
representation - The representation to encode.
public boolean isDecodingRequest()
public boolean isDecodingResponse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||