org.barracudamvc.core.util.http
Class URLRewriter
java.lang.Object
org.barracudamvc.plankton.http.URLRewriter
org.barracudamvc.core.util.http.URLRewriter
public class URLRewriter
- extends URLRewriter
This just contains some Servlet utility routines
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLRewriter
public URLRewriter()
encodeURL
public static String encodeURL(ViewContext vc,
String url)
- Encode a URL if the REWRITE_URLS option is set. Using this option
makes it easy to reconfigure Barracuda if your server has problems
with URL rewriting (ie. Enhydra 3.x)
- Parameters:
vc
- the ViewContexturl
- the target url
- Returns:
- an encoded url (unless REWRITE_URLS = false, in which case
it will just return the original url value)
encodeRedirectURL
public static String encodeRedirectURL(ViewContext vc,
String url)
- Encode a redirect URL if the REWRITE_URLS option is set. Using this option
makes it easy to reconfigure Barracuda if your server has problems
with URL rewriting (ie. Enhydra 3.x)
- Parameters:
vc
- the ViewContexturl
- the target url
- Returns:
- an encoded url (unless REWRITE_URLS = false, in which case
it will just return the original url value)
Copyright © 2006 BarracudaMVC.org All Rights Reserved.