ResourceURLWrapper provides a convenient
implementation of the ResourceURL interface
that can be subclassed by developers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped request object.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getCacheability()
Implements javax. |
| public String | getResourceID()
Implements javax. null
if no resource ID was set on the URL.
|
| public MutableResourceParameters | getResourceParameters()
Implements javax.
Gets the resource parameter values set for this URL.
|
| public ResourceURL | Returns: the wrapped object. |
| public void | setCacheability(String
the cache level of this resource URL. cacheLevel)Implements javax. |
| public void | setResourceID(String
ID for this resource URL resourceID)Implements javax. ResourceRequest#getResourceID method.
|
| public void |
| ResourceURLWrapper | back to summary |
|---|---|
public ResourceURLWrapper(ResourceURL wrapped)
| |
| getCacheability | back to summary |
|---|---|
| public String getCacheability() Implements javax. Doc from javax. Returns the cache level of this resource URL.
Possible return values are: | |
| getResourceID | back to summary |
|---|---|
| public String getResourceID() Implements javax. Doc from javax. Returns the resource ID set on the ResourceURL or | |
| getResourceParameters | back to summary |
|---|---|
| public MutableResourceParameters getResourceParameters() Implements javax. Doc from javax.
Gets the resource parameter values set for this URL.
Resource parameters are additional portlet parameters added to the URL that extend the state information provided by the render parameters. Initially the returned object is empty. Modifying the parameter values encapsulated by the returned object directly modifies the resource parameters applied to the URL.
| |
| getWrapped | back to summary |
|---|---|
| public ResourceURL getWrapped() Overrides javax. Gets the wrapped object.
| |
| setCacheability | back to summary |
|---|---|
| public void setCacheability(String cacheLevel) Implements javax. Doc from javax. Sets the cache level of this resource URL.
Possible values are:
Note that if this URL is created inside a
The default cache level of a resource URL is either the cache level of the
parent resource URL, or | |
| setResourceID | back to summary |
|---|---|
| public void setResourceID(String resourceID) Implements javax. Doc from javax. Allows setting a resource ID that can be retrieved when serving the
resource through the | |
| setWrapped | back to summary |
|---|---|
| public void setWrapped(ResourceURL wrapped) Sets the wrapped object.
| |