com.noelios.restlet.component
Class ServerRouter

java.lang.Object
  extended by org.restlet.Uniform
      extended by org.restlet.Restlet
          extended by org.restlet.Router
              extended by com.noelios.restlet.component.ServerRouter

public class ServerRouter
extends Router

Router 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

Field Summary
 
Fields inherited from class org.restlet.Router
BEST, CUSTOM, FIRST, LAST, NEXT, RANDOM
 
Constructor Summary
ServerRouter(Component component)
          Constructor.
 
Method Summary
 void start()
          Starts the Restlet.
 void stop()
           
 
Methods inherited from class org.restlet.Router
attach, attach, attach, attachDefault, attachDefault, createFinder, createRoute, detach, getCustom, getDefaultMatchingMode, getDefaultMatchQuery, getDefaultRoute, getFinderClass, getMaxAttempts, getNext, getRequiredScore, getRetryDelay, getRoutes, getRoutingMode, handle, setDefaultMatchingMode, setDefaultMatchQuery, setDefaultRoute, setFinderClass, setMaxAttempts, setRequiredScore, setRetryDelay, setRoutes, setRoutingMode
 
Methods inherited from class org.restlet.Restlet
getApplication, getContext, getLogger, init, isStarted, isStopped, setContext
 
Methods inherited from class org.restlet.Uniform
delete, delete, get, get, handle, head, head, options, options, post, post, put, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRouter

public ServerRouter(Component component)
Constructor.

Parameters:
component - The parent component.
Method Detail

start

public void start()
           throws java.lang.Exception
Starts the Restlet.

Overrides:
start in class Restlet
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Overrides:
stop in class Restlet
Throws:
java.lang.Exception


Copyright © 2005-2008 Noelios Technologies.