org.eclipse.jetty.rewrite.handler
类 CookiePatternRule
java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.PatternRule
org.eclipse.jetty.rewrite.handler.CookiePatternRule
public class CookiePatternRule
- extends PatternRule
Sets the cookie in the response whenever the rule finds a match.
- 另请参见:
Cookie
CookiePatternRule
public CookiePatternRule()
setName
public void setName(String name)
- Assigns the cookie name.
- 参数:
name - a String specifying the name of the cookie.
setValue
public void setValue(String value)
- Assigns the cookie value.
- 参数:
value - a String specifying the value of the cookie- 另请参见:
Cookie.setValue(String)
apply
public String apply(String target,
HttpServletRequest request,
HttpServletResponse response)
throws IOException
- 从类
PatternRule 复制的描述
- Apply the rule to the request
- 指定者:
- 类
PatternRule 中的 apply
- 参数:
target - field to attempt matchrequest - request objectresponse - response object
- 返回:
- The target (possible updated)
- 抛出:
IOException - exceptions dealing with operating on request or response objects
toString
public String toString()
- Returns the cookie contents.
- 覆盖:
- 类
PatternRule 中的 toString
Copyright © 2013. All Rights Reserved.