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.
|
afterHandle, doHandle, getNext, handle, hasNext, setNext, setNext, start, stop
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, 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 Filter
request
- The request to handle.response
- The response to update.public VirtualHost getVirtualHost()
public float score(Request request, Response response)
public void setNext(VirtualHost next)
next
- The next virtual host.Copyright © 2005-2020 Restlet.