Package org.restlet.service
Class DecoderService
java.lang.Object
org.restlet.service.Service
org.restlet.service.DecoderService
Application service automatically decoding or uncompressing received
entities. This service works both for received requests entities on the
server-side and received response entities on the client-side.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInboundFilter(Context context) Create the filter that should be invoked for incoming calls.createOutboundFilter(Context context) Create the filter that should be invoked for outgoing calls.Methods inherited from class org.restlet.service.Service
getContext, isEnabled, isStarted, isStopped, setContext, setEnabled, start, stop
-
Constructor Details
-
DecoderService
public DecoderService()Constructor. -
DecoderService
public DecoderService(boolean enabled) Constructor.- Parameters:
enabled- True if the service has been enabled.
-
-
Method Details
-
createInboundFilter
Description copied from class:ServiceCreate the filter that should be invoked for incoming calls.- Overrides:
createInboundFilterin classService- Parameters:
context- The current context.- Returns:
- The new filter or null.
-
createOutboundFilter
Description copied from class:ServiceCreate the filter that should be invoked for outgoing calls.- Overrides:
createOutboundFilterin classService- Parameters:
context- The current context.- Returns:
- The new filter or null.
- See Also:
-