Package org.restlet.service
Class RangeService
- java.lang.Object
-
- org.restlet.service.Service
-
- org.restlet.service.RangeService
-
public class RangeService extends Service
Application service automatically exposes ranges of response entities. This allows resources to not care of requested ranges and return full representations that will then be transparently wrapped in partial representations by this service, allowing the client to benefit from partial downloads.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description RangeService()
Constructor.RangeService(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.-
Methods inherited from class org.restlet.service.Service
createOutboundFilter, 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.
-
-