# com.bea.portlet
ResourceURL Class

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.

Hierarchy
  `Object`
  `GenericURL`
  `ResourceURL`

All Implemented Interfaces
  `Cloneable`

## Field Summary

Fields from com.bea.portlet`.`GenericURL``
``CONTROL_STATE_PARAM`, `CURRENT_PAGE`, `DOMAIN`, `httpRequest`, `httpResponse`, `LOADSTATE_PARAM`, `MODE_PARAM`, `PAGE_LABEL_PARAM`, `params`, `PATH`, `PORT`, `POSTBACK_PARAM`, `PREFIX`, `QUERY_STRING`, `SCHEME`, `SECURE_PORT`, `STATE_PARAM`, `TREE_OPTIMIZATION_PARAM`, `WINDOW_LABEL_PARAM``

## Constructor Summary

ResourceURL(`HttpServletRequest` httpRequest, `HttpServletResponse` httpResponse) Constructs a `ResourceURL`.

## Method Summary

`public static `ResourceURL`` | `createResourceURL`(`HttpServletRequest` httpRequest, `HttpServletResponse` httpResponse) Returns a ResourceURL.
`public `String`` | `getUrlType`() Returns the type this URL.

Methods from `com.bea.portlet.`GenericURL``
``addParameter`, `addParameter`, `addParameter`, `appendEnsureSeparator`, `clone`, `createQueryString`, `getContextualPath`, `getDomain`, `getEncodeSession`, `getParameter`, `getParameters`, `getPathPrefix`, `getPort`, `getResolvedTemplate`, `getScheme`, `getSecurePort`, `getTemplate`, `removeParameter`, `setContextualPath`, `setDomain`, `setEncodeSession`, `setPath`, `setPathPrefix`, `setPort`, `setScheme`, `setSecurePort`, `setTemplate`, `toString`, `toString``

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

## Constructor Detail

### ResourceURL

    protected ResourceURL(HttpServletRequest httpRequest,
                          HttpServletResponse httpResponse)

  Constructs a `ResourceURL`.

## Method Detail

### createResourceURL(HttpServletRequest, HttpServletResponse) Method

    public static ResourceURL createResourceURL(HttpServletRequest httpRequest,
                                                HttpServletResponse httpResponse)

Returns a ResourceURL.

#### Parameters

httpRequest
  HTTP request

httpResponse
  HTTP response

#### Returns

GenericURL

### getUrlType() Method

    public String getUrlType()

Returns the type this URL.

Overrides
  `GenericURL.getUrlType()`