Package org.restlet.service
Class DecoderService
- java.lang.Object
-
- org.restlet.service.Service
-
- org.restlet.service.DecoderService
-
public class DecoderService extends Service
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 Constructor Description DecoderService()
Constructor.DecoderService(boolean enabled)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filter
createInboundFilter(Context context)
Create the filter that should be invoked for incoming calls.Filter
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
-
-
-
-
Method Detail
-
createInboundFilter
public Filter createInboundFilter(Context context)
Description copied from class:Service
Create the filter that should be invoked for incoming calls.- Overrides:
createInboundFilter
in classService
- Parameters:
context
- The current context.- Returns:
- The new filter or null.
-
createOutboundFilter
public Filter createOutboundFilter(Context context)
Description copied from class:Service
Create the filter that should be invoked for outgoing calls.- Overrides:
createOutboundFilter
in classService
- Parameters:
context
- The current context.- Returns:
- The new filter or null.
- See Also:
Context.getClientDispatcher()
-
-