com.bea.portlet
Class ResourceURL

java.lang.Object
  extended by com.bea.portlet.GenericURL
      extended by com.bea.portlet.ResourceURL
All Implemented Interfaces
Cloneable

public class ResourceURL
extends GenericURL

Represents a URL to a resource. Resource URLs are typically used for static/dynamic resources such as files, images, etc.

Attribute Purpose
path path is the relative path to the resource. If the webapp name is needed in the path use contextualPath.
contextualPath contextualPath is the relative path to the resource. The contextual path includes tha webAppName

Resource URLs can not be used to submit requests to the portal framework.


Field Summary
 
Fields inherited from class com.bea.portlet.GenericURL
COMMUNITY_ADMIN_FLAG_PARAM, COMMUNITY_DESKTOP, CONTROL_STATE_PARAM, CURRENT_PAGE, domain, DOMAIN, EVENT_NAME_PARAM, httpRequest, httpResponse, httpsDomain, LOADSTATE_PARAM, MODE_PARAM, PAGE_LABEL_PARAM, params, PATH, PORT, PORTLET_SUB_INSTANCE_ID, POSTBACK_PARAM, PREFIX, QUERY_STRING, SCHEME, SECURE_PORT, STATE_PARAM, TREE_OPTIMIZATION_PARAM, URL_COMPRESSION, WINDOW_LABEL_PARAM
 
Constructor Summary
protected ResourceURL(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
          Constructs a ResourceURL.
 
Method Summary
static ResourceURL createResourceURL(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
          Returns a ResourceURL.
 String getUrlType()
          Returns the type of this URL.
 
Methods inherited from class com.bea.portlet.GenericURL
addAjaxNoRewriteParam, addParameter, addParameter, addParameter, appendEnsureSeparator, appendEnsureSeparator, clone, createGenericURL, createQueryString, createQueryStringBuilder, getContextualPath, getDomain, getEncodeSession, getParameter, getParameters, getPathPrefix, getPort, getResolvedTemplate, getScheme, getSecurePort, getTemplate, removeParameter, setContextualPath, setDomain, setEncodeSession, setForcedAmpForm, setPath, setPathPrefix, setPort, setScheme, setSecurePort, setTemplate, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceURL

protected ResourceURL(javax.servlet.http.HttpServletRequest httpRequest,
                      javax.servlet.http.HttpServletResponse httpResponse)

Constructs a ResourceURL.

Parameters
httpRequest - HTTP request
httpResponse - HTTP response
Method Detail

createResourceURL

public static ResourceURL createResourceURL(javax.servlet.http.HttpServletRequest httpRequest,
                                            javax.servlet.http.HttpServletResponse httpResponse)

Returns a ResourceURL.

Parameters
httpRequest - HTTP request
httpResponse - HTTP response
Returns
GenericURL

getUrlType

public String getUrlType()

Returns the type of this URL.

Overrides:
getUrlType in class GenericURL
Returns


Copyright © 2006 BEA Systems, Inc. All Rights Reserved