org.tinygroup.weblayer.webcontext.rewrite
类 RewriteRule

java.lang.Object
  继承者 org.tinygroup.weblayer.webcontext.rewrite.RewriteRule
所有已实现的接口:
org.springframework.beans.factory.InitializingBean

public class RewriteRule
extends Object
implements org.springframework.beans.factory.InitializingBean

代表一个rewrite规则。

每个rewrite规则被匹配后,就会再试着匹配所有的conditions(如果有的话)。假如conditions也被满足, 那么substitution就会被执行。

作者:
renhui

构造方法摘要
RewriteRule()
           
 
方法摘要
 void afterPropertiesSet()
           
 String getPattern()
           
 RewriteSubstitution getSubstitution()
           
 Object[] handlers()
           
 MatchResult match(String path)
          试图匹配rule。
 MatchResult matchConditions(MatchResult ruleMatchResult, javax.servlet.http.HttpServletRequest request)
           
 void setConditions(RewriteCondition[] conditions)
           
 void setHandlers(Object[] handlers)
           
 void setPattern(String patternString)
           
 void setSubstitution(RewriteSubstitution substitution)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

RewriteRule

public RewriteRule()
方法详细信息

getPattern

public String getPattern()

setPattern

public void setPattern(String patternString)
                throws PatternSyntaxException
抛出:
PatternSyntaxException

setConditions

public void setConditions(RewriteCondition[] conditions)

setSubstitution

public void setSubstitution(RewriteSubstitution substitution)

setHandlers

public void setHandlers(Object[] handlers)

handlers

public Object[] handlers()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
指定者:
接口 org.springframework.beans.factory.InitializingBean 中的 afterPropertiesSet
抛出:
Exception

match

public MatchResult match(String path)
试图匹配rule。

如果匹配,则返回匹配结果。否则返回null表示不匹配。


matchConditions

public MatchResult matchConditions(MatchResult ruleMatchResult,
                                   javax.servlet.http.HttpServletRequest request)

getSubstitution

public RewriteSubstitution getSubstitution()

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2006–2014 开源组织. All rights reserved.