|
||||||||||
| 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 String |
decode(String input)
Decodes the URL using URLDecoder.decode(String, String) with the encoding specified in the configuration. |
static String |
encode(String input)
Encodes the URL using URLEncoder.encode(java.lang.String) with the encoding specified in the configuration. |
static Map |
parseQueryString(String queryString)
|
| 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 encode(String input)
URLEncoder.encode(java.lang.String) with the encoding specified in the configuration.
input - the input to encode
public static String decode(String input)
URLDecoder.decode(String, String) with the encoding specified in the configuration.
input - the input to decode
public static Map parseQueryString(String queryString)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||