|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.RuleContainer
public class RuleContainer
Base container to group rules. Can be extended so that the contained rules will only be applied under certain conditions
| 嵌套类摘要 |
|---|
| 从类 org.eclipse.jetty.rewrite.handler.Rule 继承的嵌套类/接口 |
|---|
Rule.ApplyURI |
| 字段摘要 | |
|---|---|
protected LegacyRule |
_legacy
|
protected String |
_originalPathAttribute
|
protected boolean |
_rewritePathInfo
|
protected boolean |
_rewriteRequestURI
|
protected Rule[] |
_rules
|
| 从类 org.eclipse.jetty.rewrite.handler.Rule 继承的字段 |
|---|
_handling, _terminating |
| 构造方法摘要 | |
|---|---|
RuleContainer()
|
|
| 方法摘要 | |
|---|---|
void |
addRule(Rule rule)
Add a Rule |
protected String |
apply(String target,
HttpServletRequest request,
HttpServletResponse response)
Process the contained rules (called by matchAndApply) |
LegacyRule |
getLegacyRule()
已过时。 |
String |
getOriginalPathAttribute()
|
Rule[] |
getRules()
Returns the list of rules. |
boolean |
isRewritePathInfo()
|
boolean |
isRewriteRequestURI()
|
String |
matchAndApply(String target,
HttpServletRequest request,
HttpServletResponse response)
Process the contained rules |
void |
setLegacyRule(LegacyRule legacyRule)
已过时。 |
void |
setOriginalPathAttribute(String originalPathAttribte)
|
void |
setRewritePathInfo(boolean rewritePathInfo)
|
void |
setRewriteRequestURI(boolean rewriteRequestURI)
|
void |
setRules(Rule[] rules)
Assigns the rules to process. |
| 从类 org.eclipse.jetty.rewrite.handler.Rule 继承的方法 |
|---|
isHandling, isTerminating, setHandling, setTerminating, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected Rule[] _rules
protected String _originalPathAttribute
protected boolean _rewriteRequestURI
protected boolean _rewritePathInfo
protected LegacyRule _legacy
| 构造方法详细信息 |
|---|
public RuleContainer()
| 方法详细信息 |
|---|
@Deprecated public LegacyRule getLegacyRule()
@Deprecated public void setLegacyRule(LegacyRule legacyRule)
legacyRule - old style rewrite rulepublic Rule[] getRules()
Rule.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 String getOriginalPathAttribute()
public void setOriginalPathAttribute(String originalPathAttribte)
originalPathAttribte - If non null, this string will be used
as the attribute name to store the original request path.
public String matchAndApply(String target,
HttpServletRequest request,
HttpServletResponse response)
throws IOException
Rule 中的 matchAndApplytarget - 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 rules
IOException - TODO
protected String apply(String target,
HttpServletRequest request,
HttpServletResponse response)
throws 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 rules
IOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||