org.tinygroup.weblayer.webcontext.rewrite
类 RewriteUtil
java.lang.Object
org.tinygroup.weblayer.webcontext.rewrite.RewriteUtil
public class RewriteUtil
- extends Object
和rewrite相关的工具类。
- 作者:
- renhui
| 从类 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.