Package | Description |
---|---|
org.restlet.engine.component |
Supports Restlet components.
|
org.restlet.routing |
Classes related to call routing.
|
org.restlet.util |
Various utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
ClientRoute
Router scorer based on a target client connector.
|
class |
HostRoute
Route based on a target VirtualHost.
|
Modifier and Type | Method and Description |
---|---|
Route |
InternalRouter.attach(Restlet target) |
Route |
InternalRouter.attach(String uriPattern,
Restlet target) |
Route |
InternalRouter.attachDefault(Restlet defaultTarget) |
protected Route |
InternalRouter.createRoute(String uriPattern,
Restlet target,
int matchingMode) |
Modifier and Type | Method and Description |
---|---|
protected void |
ServerRouter.logRoute(Route route) |
protected void |
ClientRouter.logRoute(Route route) |
Modifier and Type | Method and Description |
---|---|
Route |
VirtualHost.attach(Restlet target)
Attaches a target Restlet to this router with an empty URI pattern.
|
Route |
Router.attach(Restlet target)
Attaches a target Restlet to this router with an empty URI pattern.
|
Route |
Router.attach(Restlet target,
int matchingMode)
Attaches a target Restlet to this router with an empty URI pattern.
|
Route |
Router.attach(String pathTemplate,
Class<?> targetClass)
Attaches a target Resource class to this router based on a given URI
pattern.
|
Route |
Router.attach(String pathTemplate,
Class<?> targetClass,
int matchingMode)
Attaches a target Resource class to this router based on a given URI
pattern.
|
Route |
VirtualHost.attach(String uriPattern,
Restlet target)
Attaches a target Restlet to this router based on a given URI pattern.
|
Route |
Router.attach(String pathTemplate,
Restlet target)
Attaches a target Restlet to this router based on a given URI pattern.
|
Route |
Router.attach(String pathTemplate,
Restlet target,
int matchingMode)
Attaches a target Restlet to this router based on a given URI pattern.
|
Route |
Router.attachDefault(Class<?> defaultTargetClass)
Attaches a Resource class to this router as the default target to invoke
when no route matches.
|
Route |
VirtualHost.attachDefault(Restlet defaultTarget)
Attaches a Restlet to this router as the default target to invoke when no
route matches.
|
Route |
Router.attachDefault(Restlet defaultTarget)
Attaches a Restlet to this router as the default target to invoke when no
route matches.
|
protected Route |
Router.createRoute(String uriPattern,
Restlet target)
Creates a new route for the given URI pattern and target.
|
protected Route |
VirtualHost.createRoute(String uriPattern,
Restlet target,
int matchingMode) |
protected Route |
Router.createRoute(String uriPattern,
Restlet target,
int matchingMode)
Creates a new route for the given URI pattern, target and matching mode.
|
Route |
Route.extractCookie(String attribute,
String cookieName,
boolean first)
Deprecated.
Extracts an attribute from the request cookies.
|
Route |
Route.extractEntity(String attribute,
String parameter,
boolean first)
Deprecated.
Extracts an attribute from the request entity form.
|
Route |
Route.extractQuery(String attribute,
String parameter,
boolean first)
Deprecated.
Extracts an attribute from the query string of the resource reference.
|
protected Route |
Router.getCustom(Request request,
Response response)
Returns the matched route according to a custom algorithm.
|
Route |
Router.getDefaultRoute()
Returns the default route to test if no other one was available after
retrying the maximum number of attempts.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Router.logRoute(Route route)
Logs the route selected.
|
void |
Router.setDefaultRoute(Route defaultRoute)
Sets the default route tested if no other one was available.
|
Modifier and Type | Method and Description |
---|---|
Route |
RouteList.getBest(Request request,
Response response,
float requiredScore)
Returns the best route match for a given call.
|
Route |
RouteList.getFirst(Request request,
Response response,
float requiredScore)
Returns the first route match for a given call.
|
Route |
RouteList.getLast(Request request,
Response response,
float requiredScore)
Returns the last route match for a given call.
|
Route |
RouteList.getNext(Request request,
Response response,
float requiredScore)
Returns a next route match in a round robin mode for a given call.
|
Route |
RouteList.getRandom(Request request,
Response response,
float requiredScore)
Returns a random route match for a given call.
|
Constructor and Description |
---|
RouteList(List<Route> delegate)
Constructor.
|
Copyright © 2005–2016. All rights reserved.