org.eclipse.jetty.rewrite.handler
类 RedirectPatternRule

java.lang.Object
  继承者 org.eclipse.jetty.rewrite.handler.Rule
      继承者 org.eclipse.jetty.rewrite.handler.PatternRule
          继承者 org.eclipse.jetty.rewrite.handler.RedirectPatternRule

public class RedirectPatternRule
extends PatternRule

Redirects 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
 
构造方法摘要
RedirectPatternRule()
           
 
方法摘要
 String apply(String target, HttpServletRequest request, HttpServletResponse response)
          Apply the rule to the request
 void setLocation(String value)
          Sets the redirect location.
 String toString()
          Returns the redirect location.
 
从类 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
 

构造方法详细信息

RedirectPatternRule

public RedirectPatternRule()
方法详细信息

setLocation

public void setLocation(String value)
Sets the redirect location.

参数:
value - the location to redirect.

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 match
request - request object
response - response object
返回:
The target (possible updated)
抛出:
IOException - exceptions dealing with operating on request or response objects

toString

public String toString()
Returns the redirect location.

覆盖:
PatternRule 中的 toString


Copyright © 2013. All Rights Reserved.