Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2005 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      com.bea.struts.adapter.util.rewriter.URLRewriter
          com.bea.struts.adapter.util.rewriter.DefaultURLRewriter

public class DefaultURLRewriter
extends URLRewriter

Field Summary

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

Constructor Summary
`DefaultURLRewriter()`

Method Summary
`String` | `createActionURL(PageContext pageContext, String action, String type)`
`static boolean` | `isAbsoluteURI(String uri)` Tell whether a given URI is absolute, i.e., whether it contains a scheme-part (e.g., "http:").
`String` | `rewriteName(ServletContext servletContext, ServletRequest request, String name)` Rewrite the given query parameter name.
`String` | `rewriteURL(ServletContext servletContext, ServletRequest request, ServletResponse response, String url, String type)` Rewrite the given URL.

Methods inherited from class com.bea.struts.adapter.util.rewriter.URLRewriter
`getNextRewriter, isStandAloneForward, setNextRewriter`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultURLRewriter

    public DefaultURLRewriter()

Method Detail

### createActionURL

    public String createActionURL(PageContext pageContext,
                                  String action,
                                  String type)

  Specified by:
    `createActionURL` in class `URLRewriter`

### isAbsoluteURI

    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

    public String rewriteName(ServletContext servletContext,
                              ServletRequest request,
                              String name)

  Description copied from class: `URLRewriter`
  Rewrite the given query parameter name.

  Specified by:
    `rewriteName` in class `URLRewriter`
  Parameters:
    `servletContext` - the current ServletContext.
    `request` - the current HttpServletRequest.
    `name` - the query parameter name to rewrite.
  Returns:
    the rewritten query parameter name.

### rewriteURL

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

  Description copied from class: `URLRewriter`
  Rewrite the given URL.

  Specified by:
    `rewriteURL` in class `URLRewriter`
  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:
    - `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
  Returns:
    the rewritten URL.

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2005 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 BEA Systems, Inc. All Rights Reserved