|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.core.util.http.URLRewriter
This just contains some Servlet utility routines
Field Summary | |
static boolean |
REWRITE_URLS
This option is used to control whether or not URL rewriting occurs. |
Constructor Summary | |
URLRewriter()
|
Method Summary | |
static java.lang.String |
encodeRedirectURL(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String url)
Encode a redirect URL if the REWRITE_URLS option is set. |
static java.lang.String |
encodeRedirectURL(ViewContext vc,
java.lang.String url)
Encode a redirect URL if the REWRITE_URLS option is set. |
static java.lang.String |
encodeURL(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String url)
Encode a URL if the REWRITE_URLS option is set. |
static java.lang.String |
encodeURL(ViewContext vc,
java.lang.String url)
Encode a URL if the REWRITE_URLS option is set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean REWRITE_URLS
Constructor Detail |
public URLRewriter()
Method Detail |
public static java.lang.String encodeURL(ViewContext vc, java.lang.String url)
vc
- the ViewContexturl
- the target url
public static java.lang.String encodeURL(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String url)
req
- the servlet requestresp
- the servlet responseurl
- the target url
public static java.lang.String encodeRedirectURL(ViewContext vc, java.lang.String url)
vc
- the ViewContexturl
- the target url
public static java.lang.String encodeRedirectURL(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String url)
req
- the servlet requestresp
- the servlet responseurl
- the target url
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |