Package org.restlet.engine.component
Class ServerRouter
- java.lang.Object
 - 
- org.restlet.Restlet
 - 
- org.restlet.routing.Router
 - 
- org.restlet.engine.component.ServerRouter
 
 
 
 
- 
- All Implemented Interfaces:
 org.restlet.Uniform
public class ServerRouter extends org.restlet.routing.RouterRouter that collects calls from all server connectors and dispatches them to the appropriate host routers. The host routers then dispatch them to the user applications. 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
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ServerRouter(org.restlet.Component component)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidlogRoute(org.restlet.routing.Route route)Logs the route selected.voidstart()Starts the Restlet.voidstop()Stops the filter and the attached routes.- 
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, getNext, getRequiredScore, getRetryDelay, getRoutes, getRoutingMode, handle, redirectPermanent, redirectSeeOther, redirectTemporary, setDefaultMatchingMode, setDefaultMatchingQuery, setDefaultRoute, setMaxAttempts, setRequiredScore, setRetryDelay, setRoutes, setRoutingMode 
 - 
 
 - 
 
- 
- 
Method Detail
- 
logRoute
protected void logRoute(org.restlet.routing.Route route)
Description copied from class:org.restlet.routing.RouterLogs the route selected.- Overrides:
 logRoutein classorg.restlet.routing.Router- Parameters:
 route- The route selected.
 
- 
start
public void start() throws java.lang.ExceptionStarts the Restlet.- Overrides:
 startin classorg.restlet.routing.Router- Throws:
 java.lang.Exception
 
- 
stop
public void stop() throws java.lang.ExceptionDescription copied from class:org.restlet.routing.RouterStops the filter and the attached routes.- Overrides:
 stopin classorg.restlet.routing.Router- Throws:
 java.lang.Exception
 
 - 
 
 -