public abstract class Route extends Filter
Template
Constructor and Description |
---|
Route(Restlet next)
Constructor behaving as a simple extractor filter.
|
Route(Router router,
Restlet next)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Router |
getRouter()
Returns the parent router.
|
abstract float |
score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
void |
setRouter(Router router)
Sets the parent router.
|
afterHandle, beforeHandle, 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 Route(Restlet next)
next
- The next Restlet.public Router getRouter()
public abstract float score(Request request, Response response)
request
- The request to score.response
- The response to score.public void setRouter(Router router)
router
- The parent router.Copyright © 2005-2024 Restlet.