org.tinygroup.weblayer.webcontext.rewrite
类 RewriteUtil

java.lang.Object
  继承者 org.tinygroup.weblayer.webcontext.rewrite.RewriteUtil

public class RewriteUtil
extends Object

和rewrite相关的工具类。

作者:
renhui

构造方法摘要
RewriteUtil()
           
 
方法摘要
static String expand(String varName, javax.servlet.http.HttpServletRequest request)
          展开变量。
static String format(String testString, javax.servlet.http.HttpServletRequest request)
           
static org.tinygroup.commons.tools.MatchResultSubstitution getMatchResultSubstitution(MatchResult ruleMatchResult, MatchResult conditionMatchResult)
           
static String getSubstitutedTestString(String testString, MatchResult ruleMatchResult, MatchResult conditionMatchResult, javax.servlet.http.HttpServletRequest request)
           
static boolean isFullURL(String path)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RewriteUtil

public RewriteUtil()
方法详细信息

isFullURL

public static boolean isFullURL(String path)

getMatchResultSubstitution

public static org.tinygroup.commons.tools.MatchResultSubstitution getMatchResultSubstitution(MatchResult ruleMatchResult,
                                                                                             MatchResult conditionMatchResult)

getSubstitutedTestString

public static String getSubstitutedTestString(String testString,
                                              MatchResult ruleMatchResult,
                                              MatchResult conditionMatchResult,
                                              javax.servlet.http.HttpServletRequest request)

format

public static String format(String testString,
                            javax.servlet.http.HttpServletRequest request)

expand

public static String expand(String varName,
                            javax.servlet.http.HttpServletRequest request)
展开变量。

返回:
注意,如果返回null,表示按原样显示,例如:%{XYZ}


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