public class Decoder extends Filter
| Constructor and Description |
|---|
Decoder(Context context)
Constructor to only decode request entities before handling.
|
Decoder(Context context,
boolean decodingRequest,
boolean decodingResponse)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
doHandle, getNext, handle, hasNext, setNext, setNext, start, stopcreateFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwnerpublic 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.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()
Copyright © 2005-2024 Restlet.