|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.j2ep.rules.BaseRule
public abstract class BaseRule
The BaseRule is an empty rule implementation which can be extended. This class is based on the work by Yoav Shapira for the balancer webapp supplied with Tomcat.
Constructor Summary | |
---|---|
BaseRule()
|
Method Summary | |
---|---|
java.lang.String |
process(java.lang.String uri)
Returns the redirect URI for requests that match this rule. |
java.lang.String |
revert(java.lang.String uri)
Returns the reverted URI, this means that if a URI is processed and then reverted it should be the same URI. |
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 |
Methods inherited from interface net.sf.j2ep.model.Rule |
---|
matches |
Constructor Detail |
---|
public BaseRule()
Method Detail |
---|
public java.lang.String process(java.lang.String uri)
Rule
process
in interface Rule
uri
- URI to be processed
Rule.process(java.lang.String)
public java.lang.String revert(java.lang.String uri)
Rule
revert
in interface Rule
uri
- URI to be reverted
Rule.revert(java.lang.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 |