org.restlet.engine.component
Class ClientRouter
java.lang.Object
org.restlet.Restlet
org.restlet.routing.Router
org.restlet.engine.component.ClientRouter
- All Implemented Interfaces:
- Uniform
public class ClientRouter
- extends Router
Router that collects calls from all applications and dispatches them to the
appropriate client connectors.
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 in member variables.
- Author:
- Jerome Louvel
Methods inherited from class org.restlet.routing.Router |
attach, attach, attach, attach, attach, attach, attachDefault, attachDefault, createRoute, createRoute, detach, detach, doHandle, getCustom, getDefaultMatchingMode, getDefaultMatchingQuery, getDefaultRoute, getMatchingMode, getMaxAttempts, getRequiredScore, getRetryDelay, getRoutes, getRoutingMode, handle, setDefaultMatchingMode, setDefaultMatchingQuery, setDefaultRoute, setMaxAttempts, setRequiredScore, setRetryDelay, setRoutes, setRoutingMode, stop |
Methods inherited from class org.restlet.Restlet |
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner |
ClientRouter
public ClientRouter(Component component)
- Constructor.
- Parameters:
component
- The parent component.
logRoute
protected void logRoute(Route route)
- Overrides:
logRoute
in class Router
getNext
public Restlet getNext(Request request,
Response response)
- Overrides:
getNext
in class Router
start
public void start()
throws Exception
- Starts the Restlet.
- Overrides:
start
in class Router
- Throws:
Exception
Copyright © 2005-2013 Restlet.