public class ComponentServerDispatcher extends TemplateDispatcher
Constructor and Description |
---|
ComponentServerDispatcher(ComponentContext componentContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
beforeHandle(Request request,
Response response)
Handles the call after resolving any URI template on the request's target
resource reference.
|
protected int |
doHandle(Request request,
Response response)
Handles the call by distributing it to the next Restlet.
|
afterHandle
getNext, handle, hasNext, setNext, setNext, start, stop
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
public ComponentServerDispatcher(ComponentContext componentContext)
componentContext
- The component context.public int beforeHandle(Request request, Response response)
TemplateDispatcher
beforeHandle
in class TemplateDispatcher
request
- The request to handle.response
- The response to update.Filter.CONTINUE
or
Filter.SKIP
or Filter.STOP
.protected int doHandle(Request request, Response response)
org.restlet.routing.Filter
Status.SERVER_ERROR_INTERNAL
status is returned.
Returns Filter.CONTINUE
by default.doHandle
in class Filter
request
- The request to handle.response
- The response to update.Filter.CONTINUE
or
Filter.STOP
.Copyright © 2005-2020 Restlet.