org.barracudamvc.core.util.http
Class URLRewriter

java.lang.Object
  extended by org.barracudamvc.plankton.http.URLRewriter
      extended by org.barracudamvc.core.util.http.URLRewriter

public class URLRewriter
extends URLRewriter

This just contains some Servlet utility routines


Field Summary
 
Fields inherited from class org.barracudamvc.plankton.http.URLRewriter
REWRITE_URLS
 
Constructor Summary
URLRewriter()
           
 
Method Summary
static String encodeRedirectURL(ViewContext vc, String url)
          Encode a redirect URL if the REWRITE_URLS option is set.
static String encodeURL(ViewContext vc, String url)
          Encode a URL if the REWRITE_URLS option is set.
 
Methods inherited from class org.barracudamvc.plankton.http.URLRewriter
encodeRedirectURL, encodeURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLRewriter

public URLRewriter()
Method Detail

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 ViewContext
url - 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 ViewContext
url - 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.