| org.restlet.Route com.noelios.restlet.component.ClientRoute
ClientRoute | public class ClientRoute extends Route (Code) | | Router scorer based on a target client connector.
author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public Client | getClient() Returns the target client. | public float | score(Request request, Response response) Returns the score for a given call (between 0 and 1.0).
Parameters: request - The request to score. Parameters: response - The response to score. | public void | setNext(Client next) Sets the next client. |
ClientRoute | public ClientRoute(Router router, Client target)(Code) | | Constructor.
Parameters: router - The parent router. Parameters: target - The target client. |
getClient | public Client getClient()(Code) | | Returns the target client.
The target client. |
score | public float score(Request request, Response response)(Code) | | Returns the score for a given call (between 0 and 1.0).
Parameters: request - The request to score. Parameters: response - The response to score. The score for a given call (between 0 and 1.0). |
setNext | public void setNext(Client next)(Code) | | Sets the next client.
Parameters: next - The next client. |
Methods inherited from org.restlet.Route | protected void beforeHandle(Request request, Response response)(Code)(Java Doc) public Route extractCookie(String attribute, String cookieName, boolean first)(Code)(Java Doc) public Route extractEntity(String attribute, String parameter, boolean first)(Code)(Java Doc) public Route extractQuery(String attribute, String parameter, boolean first)(Code)(Java Doc) public Router getRouter()(Code)(Java Doc) public Template getTemplate()(Code)(Java Doc) public float score(Request request, Response response)(Code)(Java Doc) public void setTemplate(Template template)(Code)(Java Doc) public void validate(String attribute, boolean required, String format)(Code)(Java Doc)
|
|
|