public class HostRoute extends Route
Constructor and Description |
---|
HostRoute(Router router,
VirtualHost target)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected int |
beforeHandle(Request request,
Response response)
Allows filtering before processing by the next Restlet.
|
VirtualHost |
getVirtualHost()
Returns the target virtual host.
|
float |
score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
void |
setNext(VirtualHost next)
Sets the next virtual host.
|
extractCookie, extractEntity, extractQuery, validate
getMatchingMode, getMatchQuery, getRouter, getTemplate, isMatchingQuery, setMatchingMode, setMatchingQuery, setMatchQuery, setRouter, setTemplate, toString
afterHandle, doHandle, getNext, handle, hasNext, setNext, setNext, start, stop
finalize, getApplication, getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwner
public HostRoute(Router router, VirtualHost target)
router
- The parent router.target
- The target virtual host.protected int beforeHandle(Request request, Response response)
beforeHandle
in class Route
request
- The request to handle.response
- The response to update.public VirtualHost getVirtualHost()
public float score(Request request, Response response)
score
in class TemplateRoute
request
- The request to score.response
- The response to score.public void setNext(VirtualHost next)
next
- The next virtual host.Copyright © 2005–2016. All rights reserved.