Package | Description |
---|---|
org.restlet.routing |
Classes related to call routing.
|
org.restlet.util |
Various utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
TemplateRoute
Filter scoring the affinity of calls with the attached Restlet.
|
Modifier and Type | Method and Description |
---|---|
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(java.util.List<Route> delegate)
Constructor.
|
Copyright © 2005-2024 Restlet.