|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.PatternRule
org.eclipse.jetty.rewrite.handler.HeaderPatternRule
public class HeaderPatternRule
Sets the header in the response whenever the rule finds a match.
| 嵌套类摘要 |
|---|
| 从类 org.eclipse.jetty.rewrite.handler.Rule 继承的嵌套类/接口 |
|---|
Rule.ApplyURI |
| 字段摘要 |
|---|
| 从类 org.eclipse.jetty.rewrite.handler.PatternRule 继承的字段 |
|---|
_pattern |
| 从类 org.eclipse.jetty.rewrite.handler.Rule 继承的字段 |
|---|
_handling, _terminating |
| 构造方法摘要 | |
|---|---|
HeaderPatternRule()
|
|
| 方法摘要 | |
|---|---|
String |
apply(String target,
HttpServletRequest request,
HttpServletResponse response)
Invokes this method when a match found. |
String |
getName()
Returns the header name. |
String |
getValue()
Returns the header value. |
boolean |
isAdd()
Returns the add flag value. |
void |
setAdd(boolean add)
Sets the Add flag. |
void |
setName(String name)
Sets the header name. |
void |
setValue(String value)
Sets the header value. |
String |
toString()
Returns the header contents. |
| 从类 org.eclipse.jetty.rewrite.handler.PatternRule 继承的方法 |
|---|
getPattern, matchAndApply, setPattern |
| 从类 org.eclipse.jetty.rewrite.handler.Rule 继承的方法 |
|---|
isHandling, isTerminating, setHandling, setTerminating |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public HeaderPatternRule()
| 方法详细信息 |
|---|
public void setName(String name)
name - name of the header fieldpublic void setValue(String value)
String or int value.
value - of the header fieldpublic void setAdd(boolean add)
add - If true, the header is added to the response, otherwise the header it is set on the response.
public String apply(String target,
HttpServletRequest request,
HttpServletResponse response)
throws IOException
PatternRule 中的 applytarget - field to attempt matchrequest - request objectresponse - response object
IOException - exceptions dealing with operating on request or response objectsRule.matchAndApply(String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public String getName()
public String getValue()
public boolean isAdd()
public String toString()
PatternRule 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||