public class ClientRoute extends Route
Constructor and Description |
---|
ClientRoute(Router router,
Client target)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Client |
getClient()
Returns the target client.
|
float |
score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
void |
setNext(Client next)
Sets the next client.
|
beforeHandle, 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 Client getClient()
public float score(Request request, Response response)
score
in class TemplateRoute
request
- The request to score.response
- The response to score.public void setNext(Client next)
next
- The next client.Copyright © 2005–2016. All rights reserved.