|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.util.URLRewriter
Re-writes URLs to include additional parameters that come from a
set of registered ParameterProviders
. This makes
cookieless login possible, by re-writing URLs to include a session
ID parameter.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
URLRewriter()
|
Method Summary | |
static void |
addParameterProvider(ParameterProvider provider)
Adds a parameter provider. |
static void |
clearParameterProviders()
Clears all parameter providers. |
static String |
encodeRedirectURL(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String url)
Encodes the given URL for redirecting the client. |
static String |
encodeURL(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String url)
Encodes the given URL for the client. |
static Set |
getGlobalModels()
Returns the set of global parameter models, or the empty set if no provider is set. |
static Set |
getGlobalParams(javax.servlet.http.HttpServletRequest req)
Returns the set of global URL parameters for the given request, or the empty set if no provider is set. |
static String |
prepareURL(String url,
javax.servlet.http.HttpServletRequest req)
Deprecated. This method does not encode the servlet session ID. Use encodeURL(req, res, url) instead. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public URLRewriter()
Method Detail |
public static void addParameterProvider(ParameterProvider provider)
public static void clearParameterProviders()
public static Set getGlobalModels()
public static Set getGlobalParams(javax.servlet.http.HttpServletRequest req)
public static String encodeRedirectURL(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String url)
public static String prepareURL(String url, javax.servlet.http.HttpServletRequest req)
public static String encodeURL(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String url)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |