RewriteCustomizer, VirtualHostRuleContainerpublic class RuleContainer extends Rule
Rule.ApplyURI| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
_originalPathAttribute |
|
protected java.lang.String |
_originalQueryStringAttribute |
|
protected boolean |
_rewritePathInfo |
|
protected boolean |
_rewriteRequestURI |
|
protected Rule[] |
_rules |
|
static java.lang.String |
ORIGINAL_QUERYSTRING_ATTRIBUTE_SUFFIX |
_handling, _terminating| Constructor | Description |
|---|---|
RuleContainer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addRule(Rule rule) |
Add a Rule
|
protected java.lang.String |
apply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Process the contained rules (called by matchAndApply)
|
java.lang.String |
getOriginalPathAttribute() |
|
Rule[] |
getRules() |
Returns the list of rules.
|
boolean |
isRewritePathInfo() |
|
boolean |
isRewriteRequestURI() |
|
java.lang.String |
matchAndApply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Process the contained rules
|
void |
setOriginalPathAttribute(java.lang.String originalPathAttribte) |
|
void |
setRewritePathInfo(boolean rewritePathInfo) |
|
void |
setRewriteRequestURI(boolean rewriteRequestURI) |
|
void |
setRules(Rule[] rules) |
Assigns the rules to process.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisHandling, isTerminating, setHandling, setTerminating, toStringpublic static final java.lang.String ORIGINAL_QUERYSTRING_ATTRIBUTE_SUFFIX
protected Rule[] _rules
protected java.lang.String _originalPathAttribute
protected java.lang.String _originalQueryStringAttribute
protected boolean _rewriteRequestURI
protected boolean _rewritePathInfo
public void setRules(Rule[] rules)
rules - an array of Rule.public void addRule(Rule rule)
rule - The rule to add to the end of the rules arraypublic boolean isRewriteRequestURI()
HttpServletRequest.getRequestURI().public void setRewriteRequestURI(boolean rewriteRequestURI)
rewriteRequestURI - true if this handler will rewrite the value
returned by HttpServletRequest.getRequestURI().public boolean isRewritePathInfo()
HttpServletRequest.getPathInfo().public void setRewritePathInfo(boolean rewritePathInfo)
rewritePathInfo - true if this handler will rewrite the value
returned by HttpServletRequest.getPathInfo().public java.lang.String getOriginalPathAttribute()
public void setOriginalPathAttribute(java.lang.String originalPathAttribte)
originalPathAttribte - If non null, this string will be used
as the attribute name to store the original request path.public java.lang.String matchAndApply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
matchAndApply in class Ruletarget - target field to pass on to the contained rulesrequest - request object to pass on to the contained rulesresponse - response object to pass on to the contained rulesjava.io.IOException - if unable to match the ruleprotected java.lang.String apply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
target - target field to pass on to the contained rulesrequest - request object to pass on to the contained rulesresponse - response object to pass on to the contained rulesjava.io.IOException - if unable to apply the ruleCopyright © 1995–2018 Webtide. All rights reserved.