Object
Methods for registering URL rewriters, and for rewriting URLs using registered rewriters.
Object
URLRewriterService
Constructor Summary |
Method Summary |
public static |
|
public static |
|
public static final |
|
protected static |
|
public static boolean |
|
public static void |
|
public static |
|
public static |
|
public static |
|
public static |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public URLRewriterService()
Method Detail |
public staticStringcreateActionURL(PageContextpageContext,Stringaction,Stringtype)
public staticReturn the form action converted into an action mapping path. The value of theStringgetActionMappingName(Stringaction)
action property is manipulated as follows in
computing the name of the requested mapping:
public static final URLRewriter getDefaultRewriter()
Get the default URLRewriter.
DefaultURLRewriter. protected staticURLRewritergetRewriter(ServletRequestrequest)
public static boolean isStandAloneForward(ServletRequest request)
Used to determine whether or not a tag is to be rendered within
a nested environment, such as a portal.
public static void registerURLRewriter(Register a URLRewriter in the request. This rewriter will be used ifServletRequestrequest,URLRewriterrewriter)
URLRewriterService.rewriteURL(ServletContext, ServletRequest, ServletResponse, String, String) is called.
public staticRewrite the given parameter name, using the registered URLRewriter.StringrewriteName(ServletContextservletContext,ServletRequestrequest,Stringname)
public staticRewrite the given URL, using the registered URLRewriter.StringrewriteURL(ServletContextservletContext,ServletRequestrequest,ServletResponseresponse,Stringurl,Stringtype)
action: a standard (non-resource) URL, for which SSL is not required
secure-action: a standard (non-resource) URL, for which SSL is required
resource: a resource (e.g., image) URL, for which SSL is not required
secure-resource: a resource (e.g., image) URL, for which SSL is required
Related Topics
URLRewriterService.registerURLRewriter(ServletRequest, URLRewriter)
public staticRewrite the given URL, using the registered URLRewriter.StringrewriteURL(ServletContextservletContext,ServletRequestrequest,ServletResponseresponse,Stringurl,Stringtype, boolean doEncode)
action: a standard (non-resource) URL, for which SSL is not required
secure-action: a standard (non-resource) URL, for which SSL is required
resource: a resource (e.g., image) URL, for which SSL is not required
secure-resource: a resource (e.g., image) URL, for which SSL is required
true, the rewritten URL will be encoded using
HttpServletResponse.encodeRedirectURL(String). Related Topics
URLRewriterService.registerURLRewriter(ServletRequest, URLRewriter)
public staticUnregister the URLRewriter from the request.URLRewriterunregisterURLRewriter(ServletRequestrequest)
null if there was none registered. Related Topics
URLRewriterService.registerURLRewriter(ServletRequest, URLRewriter)