|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.views.util.UrlHelper
public class UrlHelper
UrlHelper
Constructor Summary | |
---|---|
UrlHelper()
|
Method Summary | |
---|---|
static void |
buildParametersString(Map params,
StringBuffer link)
|
static void |
buildParametersString(Map params,
StringBuffer link,
String paramSeparator)
|
static String |
buildUrl(String action,
HttpServletRequest request,
HttpServletResponse response,
Map params)
Build url based on arguments supplied, will include context path but does not encode result (append jsessionid). |
static String |
buildUrl(String action,
HttpServletRequest request,
HttpServletResponse response,
Map params,
String scheme,
boolean includeContext,
boolean encodeResult)
Build url based on arguments supplied, will not include schema, host and port in the created url. |
static String |
buildUrl(String action,
HttpServletRequest request,
HttpServletResponse response,
Map params,
String scheme,
boolean includeContext,
boolean encodeResult,
boolean forceAddSchemeHostAndPort)
Build url based on arguments supplied, will escape ampersand. |
static String |
buildUrl(String action,
HttpServletRequest request,
HttpServletResponse response,
Map params,
String scheme,
boolean includeContext,
boolean encodeResult,
boolean forceAddSchemeHostAndPort,
boolean escapeAmp)
Build url based on arguments supplied. |
static Map |
parseQueryString(String queryString)
|
static String |
translateAndDecode(String input)
|
static String |
translateAndEncode(String input)
Translates any script expressions using TextParseUtil.translateVariables(java.lang.String, com.opensymphony.xwork.util.OgnlValueStack) and
encodes the URL using URLEncoder.encode(java.lang.String) with the encoding specified in the configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlHelper()
Method Detail |
---|
public static String buildUrl(String action, HttpServletRequest request, HttpServletResponse response, Map params)
action
- request
- response
- params
-
public static String buildUrl(String action, HttpServletRequest request, HttpServletResponse response, Map params, String scheme, boolean includeContext, boolean encodeResult)
action
- request
- response
- params
- scheme
- includeContext
- encodeResult
-
public static String buildUrl(String action, HttpServletRequest request, HttpServletResponse response, Map params, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort)
action
- request
- response
- params
- scheme
- includeContext
- encodeResult
- forceAddSchemeHostAndPort
-
public static String buildUrl(String action, HttpServletRequest request, HttpServletResponse response, Map params, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort, boolean escapeAmp)
action
- request
- response
- params
- scheme
- includeContext
- encodeResult
- forceAddSchemeHostAndPort
- escapeAmp
-
public static void buildParametersString(Map params, StringBuffer link)
public static void buildParametersString(Map params, StringBuffer link, String paramSeparator)
public static String translateAndEncode(String input)
TextParseUtil.translateVariables(java.lang.String, com.opensymphony.xwork.util.OgnlValueStack)
and
encodes the URL using URLEncoder.encode(java.lang.String)
with the encoding specified in the configuration.
input
-
public static String translateAndDecode(String input)
public static Map parseQueryString(String queryString)
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |