org.ow2.opensuit.core.util
Class OpenSuitUrlBuilder

java.lang.Object
  extended by org.ow2.opensuit.core.util.UrlBuilder
      extended by org.ow2.opensuit.core.util.OpenSuitUrlBuilder

public final class OpenSuitUrlBuilder
extends UrlBuilder

This is an extension of the base UrlBuilder with specific open SUIT functionalities.


Field Summary
static java.lang.String PAGE_SELECTOR
           
static java.lang.String RESOURCE_SELECTOR
           
static java.lang.String SERVICE_SELECTOR
           
 
Fields inherited from class org.ow2.opensuit.core.util.UrlBuilder
name2value, ref, requestUri
 
Method Summary
static OpenSuitUrlBuilder copyFromRequest(javax.servlet.http.HttpServletRequest iRequest, boolean iCopyParameters)
          Constructs a OpenSuitUrlBuilder that is a copy of the given request
static OpenSuitUrlBuilder createResourceUrl(javax.servlet.http.HttpServletRequest iRequest, java.lang.String iResourcePath, java.lang.String iMimeType)
          Creates a request url that points to an internal resource.
 java.lang.String getContextPath()
           
 java.lang.String getPathInfo()
           
 java.lang.String getRequestUri()
          Returns the url request uri.
 java.lang.String getServletPath()
           
 void setPathInfo(java.lang.String pathInfo)
           
 
Methods inherited from class org.ow2.opensuit.core.util.UrlBuilder
getParameterNames, getParametersMap, getParameterValue, getRef, parse, removeParameter, setParameter, setRef, toString, toUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAGE_SELECTOR

public static final java.lang.String PAGE_SELECTOR
See Also:
Constant Field Values

SERVICE_SELECTOR

public static final java.lang.String SERVICE_SELECTOR
See Also:
Constant Field Values

RESOURCE_SELECTOR

public static final java.lang.String RESOURCE_SELECTOR
See Also:
Constant Field Values
Method Detail

copyFromRequest

public static OpenSuitUrlBuilder copyFromRequest(javax.servlet.http.HttpServletRequest iRequest,
                                                 boolean iCopyParameters)
Constructs a OpenSuitUrlBuilder that is a copy of the given request

Parameters:
iRequest - The current http request.
iCopyParameters - Tells whether current request parameters should be copied.

createResourceUrl

public static OpenSuitUrlBuilder createResourceUrl(javax.servlet.http.HttpServletRequest iRequest,
                                                   java.lang.String iResourcePath,
                                                   java.lang.String iMimeType)
Creates a request url that points to an internal resource.

Parameters:
iRequest - The current http request.
iResourcePath - The resource path.
iMimeType - The resource MIME Type (may be null, will rely on the servlet MIME Types)
Returns:

getContextPath

public java.lang.String getContextPath()

getServletPath

public java.lang.String getServletPath()

getPathInfo

public java.lang.String getPathInfo()

setPathInfo

public void setPathInfo(java.lang.String pathInfo)

getRequestUri

public java.lang.String getRequestUri()
Description copied from class: UrlBuilder
Returns the url request uri.

Overrides:
getRequestUri in class UrlBuilder
Returns:


Copyright © 2008-2012 OW2 Consortium. All Rights Reserved.