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, validategetMatchingMode, getMatchQuery, getRouter, getTemplate, isMatchingQuery, setMatchingMode, setMatchingQuery, setMatchQuery, setRouter, setTemplate, toStringafterHandle, doHandle, getNext, handle, hasNext, setNext, setNext, start, stopfinalize, getApplication, getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwnerpublic Client getClient()
public float score(Request request, Response response)
score in class TemplateRouterequest - The request to score.response - The response to score.public void setNext(Client next)
next - The next client.Copyright © 2005-2012. All Rights Reserved.