Package org.restlet.engine.component
Class ComponentClientDispatcher
- java.lang.Object
-
- org.restlet.Restlet
-
- org.restlet.routing.Filter
-
- org.restlet.engine.util.TemplateDispatcher
-
- org.restlet.engine.component.ComponentClientDispatcher
-
- All Implemented Interfaces:
org.restlet.Uniform
public class ComponentClientDispatcher extends TemplateDispatcher
Component client dispatcher. Concurrency note: instances of this class or its subclasses can be invoked by several threads at the same time and therefore must be thread-safe. You should be especially careful when storing state as member variables.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description ComponentClientDispatcher(ComponentContext componentContext)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
doHandle(org.restlet.Request request, org.restlet.Response response)
Handles the call by distributing it to the next Restlet.-
Methods inherited from class org.restlet.engine.util.TemplateDispatcher
afterHandle, beforeHandle
-
Methods inherited from class org.restlet.routing.Filter
getNext, handle, hasNext, setNext, setNext, start, stop
-
-
-
-
Constructor Detail
-
ComponentClientDispatcher
public ComponentClientDispatcher(ComponentContext componentContext)
Constructor.- Parameters:
componentContext
- The component context.
-
-
Method Detail
-
doHandle
protected int doHandle(org.restlet.Request request, org.restlet.Response response)
Description copied from class:org.restlet.routing.Filter
Handles the call by distributing it to the next Restlet. If no Restlet is attached, then aStatus.SERVER_ERROR_INTERNAL
status is returned. ReturnsFilter.CONTINUE
by default.- Overrides:
doHandle
in classorg.restlet.routing.Filter
- Parameters:
request
- The request to handle.response
- The response to update.- Returns:
- The continuation status. Either
Filter.CONTINUE
orFilter.STOP
.
-
-