| org.restlet.Route com.noelios.restlet.component.HostRoute
HostRoute | public class HostRoute extends Route (Code) | | Route based on a target VirtualHost.
author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
protected void | beforeHandle(Request request, Response response) Allows filtering before processing by the next Restlet. | public VirtualHost | getVirtualHost() Returns the target virtual host. | 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(VirtualHost next) Sets the next virtual host. |
HostRoute | public HostRoute(Router router, VirtualHost target)(Code) | | Constructor.
Parameters: router - The parent router. Parameters: target - The target virtual host. |
beforeHandle | protected void beforeHandle(Request request, Response response)(Code) | | Allows filtering before processing by the next Restlet. Set the base
reference.
Parameters: request - The request to handle. Parameters: response - The response to update. |
getVirtualHost | public VirtualHost getVirtualHost()(Code) | | Returns the target virtual host.
The target virtual host. |
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(VirtualHost next)(Code) | | Sets the next virtual host.
Parameters: next - The next virtual host. |
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)
|
|
|