|
Restlet Framework 2.2.1 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Restlet
org.restlet.routing.Router
org.restlet.engine.component.ClientRouter
public class ClientRouter
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.
Field Summary |
---|
Fields inherited from class org.restlet.routing.Router |
---|
MODE_BEST_MATCH, MODE_CUSTOM, MODE_FIRST_MATCH, MODE_LAST_MATCH, MODE_NEXT_MATCH, MODE_RANDOM_MATCH |
Constructor Summary | |
---|---|
ClientRouter(Component component)
Constructor. |
Method Summary | |
---|---|
Restlet |
getNext(Request request,
Response response)
|
protected void |
logRoute(Route route)
|
void |
start()
Starts the Restlet. |
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, redirectPermanent, redirectSeeOther, redirectTemporary, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientRouter(Component component)
component
- The parent component.Method Detail |
---|
protected void logRoute(Route route)
logRoute
in class Router
public Restlet getNext(Request request, Response response)
getNext
in class Router
public void start() throws java.lang.Exception
start
in class Router
java.lang.Exception
|
Restlet Framework 2.2.1 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |