|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rule
The Rule interface is implemented by the rules for the reverse proxy. Based on the work by Yoav Shapira for the balancer webapp.
Method Summary | |
---|---|
boolean |
matches(HttpServletRequest request)
Determines if the given request matches the rule. |
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. |
Method Detail |
---|
boolean matches(HttpServletRequest request)
request
- The request
java.lang.String process(java.lang.String uri)
uri
- URI to be processed
java.lang.String revert(java.lang.String uri)
uri
- URI to be reverted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |