public class CustomEncoder extends org.restlet.engine.application.Encoder
By default it uses its own CustomEncoderService
, instead of that of
the application, allowing specific customizations, for example custom
settings for EncoderService.getDefaultIgnoredMediaTypes()
.
IoUtil.SUPPORTED_COMPRESSION_ENCODINGS
Modifier and Type | Field and Description |
---|---|
static List<Encoding> |
SUPPORTED_ENCODINGS
Global list of supported encodings.
|
Constructor and Description |
---|
CustomEncoder(Application application)
Constructor that encodes responses.
|
CustomEncoder(Application application,
boolean encodingRequest,
boolean encodingResponse)
Constructor.
|
CustomEncoder(Context context,
boolean encodingRequest,
boolean encodingResponse,
EncoderService encoderService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<Encoding> |
getSupportedEncodings() |
String |
toString() |
afterHandle, beforeHandle, encode, getBestEncoding, getEncoderService, isEncodingRequest, isEncodingResponse
doHandle, getNext, handle, hasNext, setNext, setNext, start, stop
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
public CustomEncoder(Application application)
application
- The applicationpublic CustomEncoder(Application application, boolean encodingRequest, boolean encodingResponse)
application
- The applicationencodingRequest
- Indicates if the request entities should be encodedencodingResponse
- Indicates if the response entities should be encodedpublic CustomEncoder(Context context, boolean encodingRequest, boolean encodingResponse, EncoderService encoderService)
context
- The contextencodingRequest
- Indicates if the request entities should be encodedencodingResponse
- Indicates if the response entities should be encodedencoderService
- The encoder servicepublic List<Encoding> getSupportedEncodings()
getSupportedEncodings
in class org.restlet.engine.application.Encoder
Copyright © 2009-2016 Three Crickets LLC.