ResourceURL defines a resource URL that when clicked will
result in a serveResource call of the
ResourceServingPortlet interface.
Each resource URL has a specific cache level assigned with it. This level
can be either FULL, PORTLET or PAGE and denotes
the cacheability of the resource in the browser.
The default cache level of a resource URL is either the cache level of the
parent resource URL, or PAGE if no parent resource URL is
available.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FULL
The URL of type |
| public static final String | PAGE
The URL of type |
| public static final String | PORTLET
The URL of type |
| public static final String | SHARED
Property that the portlet can set for resources with caching
type |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the cache level of this resource URL.Returns the cache level of this resource URL. |
| public String | Returns: the resource ID set on the ResourceURL,ornull
if no resource ID was set on the URL.Returns the resource ID set on the ResourceURL or |
| public MutableResourceParameters | Returns: a mutablePortletParameters object representing
the private and public render parameters
Gets the resource parameter values set for this URL.
|
| public void | setCacheability(String
the cache level of this resource URL. cacheLevel)Sets the cache level of this resource URL. |
| public void | setResourceID(String
ID for this resource URL resourceID)Allows setting a resource ID that can be retrieved when serving the
resource through the |
| FULL | back to summary |
|---|---|
| public static final String FULL The URL of type
Only URLs of the type
URLs of the type | |
| PAGE | back to summary |
|---|---|
| public static final String PAGE The URL of type
URLs of the type | |
| PORTLET | back to summary |
|---|---|
| public static final String PORTLET The URL of type
Only URLs of the type
URLs of the type | |
| SHARED | back to summary |
|---|---|
| public static final String SHARED Property that the portlet can set for resources with caching
type When set, this property indicates to the portal application that it can share this resource across different portlet applications.
The value of this property should be a QName in the
format of | |
| getCacheability | back to summary |
|---|---|
| public String getCacheability() Returns the cache level of this resource URL.
Possible return values are:
| |
| getResourceID | back to summary |
|---|---|
| public String getResourceID() Returns the resource ID set on the ResourceURL or
| |
| getResourceParameters | back to summary |
|---|---|
| public MutableResourceParameters getResourceParameters()
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.
| |
| setCacheability | back to summary |
|---|---|
| public void setCacheability(String cacheLevel) 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) Allows setting a resource ID that can be retrieved when serving the
resource through the
| |