org.restlet.service
Class DecoderService

java.lang.Object
  extended by org.restlet.service.Service
      extended by 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
DecoderService()
          Constructor.
DecoderService(boolean enabled)
          Constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoderService

public DecoderService()
Constructor.


DecoderService

public DecoderService(boolean enabled)
Constructor.

Parameters:
enabled - True if the service has been enabled.
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 class Service
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 class Service
Parameters:
context - The current context.
Returns:
The new filter or null.
See Also:
Context.getClientDispatcher()


Copyright © 2005-2013 Restlet.