DefaultURLRewriter Class

com.bea.struts.adapter.util.rewriter
DefaultURLRewriter Class

public class DefaultURLRewriter

    extends URLRewriter

Hierarchy
Object
  URLRewriter
    DefaultURLRewriter

Field Summary

   
Fields from  com.bea.struts.adapter.util.rewriter.URLRewriter
ACTION_SECURE, ACTION_UNSECURE, NO_TYPE, RESOURCE_SECURE, RESOURCE_UNSECURE
 

Constructor Summary

DefaultURLRewriter()

 

Method Summary

public String
createActionURL(PageContext pageContext, String action, String type)
public static boolean
isAbsoluteURI(String uri)
Tell whether a given URI is absolute, i.e., whether it contains a scheme-part (e.g., "http:").
public String
rewriteName(ServletContext servletContext, ServletRequest request, String name)
public String
rewriteURL(ServletContext servletContext, ServletRequest request, ServletResponse response, String url, String type)
 
Methods from  com.bea.struts.adapter.util.rewriter.URLRewriter
getNextRewriter, isStandAloneForward, setNextRewriter
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

DefaultURLRewriter

public DefaultURLRewriter()
 

Method Detail

createActionURL(PageContext, String, String) Method

public String createActionURL(PageContext pageContext, 
                              String action, 
                              String type)
Overrides
URLRewriter.createActionURL(PageContext, String, String)

isAbsoluteURI(String) Method

public static boolean isAbsoluteURI(String uri)
Tell whether a given URI is absolute, i.e., whether it contains a scheme-part (e.g., "http:").

Parameters

uri
the URI to test.

Returns

true if the given URI is absolute.

rewriteName(ServletContext, ServletRequest, String) Method

public String rewriteName(ServletContext servletContext, 
                          ServletRequest request, 
                          String name)
Overrides
URLRewriter.rewriteName(ServletContext, ServletRequest, String)

Parameters

servletContext
the current ServletContext.
request
the current HttpServletRequest.
name
the query parameter name to rewrite.

rewriteURL(ServletContext, ServletRequest, ServletResponse, String, String) Method

public String rewriteURL(ServletContext servletContext, 
                         ServletRequest request, 
                         ServletResponse response, 
                         String url, 
                         String type)
Overrides
URLRewriter.rewriteURL(ServletContext, ServletRequest, ServletResponse, String, String)

Parameters

servletContext
the current ServletContext.
request
the current HttpServletRequest.
response
the current HttpServletResponse.
url
the URL to rewrite.
type
the type of URL to be rewritten. This is one of the following values: