| java.lang.Object com.caucho.server.rewrite.AbstractRule com.caucho.server.rewrite.AbstractRuleWithConditions
All known Subclasses: com.caucho.server.rewrite.LoadBalanceRule, com.caucho.server.rewrite.RewriteRule, com.caucho.server.rewrite.ForwardRule, com.caucho.server.rewrite.MatchRule, com.caucho.server.rewrite.ErrorRule, com.caucho.server.rewrite.MovedRule, com.caucho.server.rewrite.AcceptRule, com.caucho.server.rewrite.RedirectRule, com.caucho.server.rewrite.SetRule, com.caucho.server.rewrite.ProxyRule,
AbstractRuleWithConditions | abstract public class AbstractRuleWithConditions extends AbstractRule (Code) | | |
Method Summary | |
public void | addAnd(AndConditions condition) Add a list of conditions that must pass for the rule to match. | public void | addNot(NotConditions condition) Add a list of conditions that must not pass for the rule to match. | public void | addOr(OrConditions condition) Add a list of conditions one of which must pass for the rule to match. | public void | addUnless(ConditionConfig condition) Add a condition that must not pass for the rule to match. | public void | addWhen(ConditionConfig condition) Add a condition that must pass for the rule to match. | public void | destroy() | abstract public FilterChain | dispatch(String targetUri, String queryString, FilterChain accept, FilterChainMapper next) Returns the FilterChain to invoke if the rule is successful, null indicates
that the rule does not invoke a FilterChain. | public Pattern | getFullUrlRegexp() | public Pattern | getRegexp() | public void | init() | public FilterChain | map(String uri, String queryString, FilterChain accept) | protected void | required(Object value, String name) Throws an exception if the passed value is null. | public String | rewrite(String uri, Matcher matcher) Return a rewritten uri to use for the rest of the processing of
rewrite-dispatch. | public void | setFullUrlRegexp(Pattern regexp) Sets the regular expression pattern that must match the uri for the
rule to match, required. | public void | setRegexp(Pattern regexp) Sets the regular expression pattern that must match the uri for the
rule to match, required. |
addAnd | public void addAnd(AndConditions condition)(Code) | | Add a list of conditions that must pass for the rule to match.
|
addNot | public void addNot(NotConditions condition)(Code) | | Add a list of conditions that must not pass for the rule to match.
|
addOr | public void addOr(OrConditions condition)(Code) | | Add a list of conditions one of which must pass for the rule to match.
|
addUnless | public void addUnless(ConditionConfig condition)(Code) | | Add a condition that must not pass for the rule to match.
|
addWhen | public void addWhen(ConditionConfig condition)(Code) | | Add a condition that must pass for the rule to match.
|
destroy | public void destroy()(Code) | | |
dispatch | abstract public FilterChain dispatch(String targetUri, String queryString, FilterChain accept, FilterChainMapper next) throws ServletException(Code) | | Returns the FilterChain to invoke if the rule is successful, null indicates
that the rule does not invoke a FilterChain.
Parameters: targetUri - the target uri, possibly rewritten Parameters: accept - a FilterChain that stops evaluation of rewrite rules and Parameters: next - |
init | public void init() throws ConfigException(Code) | | |
required | protected void required(Object value, String name) throws ConfigException(Code) | | Throws an exception if the passed value is null.
|
rewrite | public String rewrite(String uri, Matcher matcher)(Code) | | Return a rewritten uri to use for the rest of the processing of
rewrite-dispatch.
Parameters: matcher - a Matcher obtained from doing a regexp comparison, or nullif there was no regexp comparison |
setFullUrlRegexp | public void setFullUrlRegexp(Pattern regexp)(Code) | | Sets the regular expression pattern that must match the uri for the
rule to match, required.
|
setRegexp | public void setRegexp(Pattern regexp)(Code) | | Sets the regular expression pattern that must match the uri for the
rule to match, required.
|
|
|