|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.j2ep.ServerChain
public class ServerChain
A ServerChain is a list of server considered in order. The first server with a rule that successfully matches tops the evaluation of servers This is only a slightly modified version of the RuleChain used with the balancer webapp shipped with tomcat.
Constructor Summary | |
---|---|
ServerChain(java.util.List serverContainers)
Constructor. |
Method Summary | |
---|---|
void |
addServer(Server theServer)
Adds a server to evaluate. |
Server |
evaluate(HttpServletRequest request)
Evaluates the given request to see if any of the rules matches. |
protected java.util.Iterator |
getServerIterator()
Returns an iterator over the list of servers to evaluate. |
Server |
getServerMapped(java.lang.String location)
Finds a server with the full path specified by the location sent in. |
protected java.util.List |
getServers()
Returns the list of servers to evaluate. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerChain(java.util.List serverContainers)
Method Detail |
---|
protected java.util.List getServers()
protected java.util.Iterator getServerIterator()
public void addServer(Server theServer)
theServer
- The server to addpublic Server evaluate(HttpServletRequest request)
request
- The request
Rule.matches(HttpServletRequest)
public Server getServerMapped(java.lang.String location)
location
- The location we want a server for.
ServerContainer.getServerMapped(String)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |