ResourceRequestWrapper provides a convenient
implementation of the ResourceRequest 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.
ResourceRequest
| Access | Constructor and Description |
|---|---|
| public | ResourceRequestWrapper(ResourceRequest
the resource request to wrap request)Creates an |
| Modifier and Type | Method and Description |
|---|---|
| public String | getCacheability()
Implements javax. |
| public DispatcherType | getDispatcherType()
Implements javax.
Gets the dispatcher type of this request.
|
| public String | getETag()
Implements javax. null if no cached response exists.
|
| public PortletAsyncContext | getPortletAsyncContext()
Implements javax.
Gets the
AsyncContext that was created or reinitialized by the most
recent invocation of startAsync() or
startAsync(ResourceRequest,ResourceResponse) on this request. |
| public Map | getPrivateRenderParameterMap()
Implements javax.
Deprecated
Returns a Map of the private render parameters of this request.
|
| public ResourceRequest | Returns: the wrapped requestOverrides javax. |
| public String | getResourceID()
Implements javax. null
if no resource ID was set on the URL.
|
| public ResourceParameters | getResourceParameters()
Implements javax.
Gets the resource parameters set for this request.
|
| public boolean | isAsyncStarted()
Implements javax.
Checks if this request has been put into asynchronous mode.
|
| public boolean | isAsyncSupported()
Implements javax.
Checks if this request supports asynchronous operation.
|
| public void | |
| public PortletAsyncContext | startPortletAsync()
Implements javax.
Puts this request into asynchronous mode and initializes the
AsyncContext
object. |
| public PortletAsyncContext | startPortletAsync(ResourceRequest request, ResourceResponse response)
Implements javax.
Puts this request into asynchronous mode and initializes the
AsyncContext
object. |
| ResourceRequestWrapper | back to summary |
|---|---|
| public ResourceRequestWrapper(ResourceRequest request) Creates an
| |
| getCacheability | back to summary |
|---|---|
| public String getCacheability() Implements javax. Doc from javax. Returns the cache level of this resource request.
Possible return values are:
| |
| getDispatcherType | back to summary |
|---|---|
| public DispatcherType getDispatcherType() Implements javax. Doc from javax.
Gets the dispatcher type of this request.
The initial dispatcher type of a request is defined as
| |
| getETag | back to summary |
|---|---|
| public String getETag() Implements javax. Doc from javax. Returns the validation tag if the portlet container
has a cached response for this validation tag, or
This call returns the same value as
| |
| getPortletAsyncContext | back to summary |
|---|---|
| public PortletAsyncContext getPortletAsyncContext() Implements javax. Doc from javax.
Gets the
AsyncContext that was created or reinitialized by the most
recent invocation of startAsync() or
startAsync(ResourceRequest,ResourceResponse) on this request.
| |
| getPrivateRenderParameterMap | back to summary |
|---|---|
| public Map Implements javax. Doc from javax. Deprecated
Returns a
The parameters returned do not include the resource parameters that
the portlet may have set on the resource URL triggering this
The values in the returned
If no private parameters exist this method returns an empty
| |
| getRequest | back to summary |
|---|---|
| public ResourceRequest getRequest() Overrides javax. Return the wrapped request object.
| |
| 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 ResourceParameters getResourceParameters() Implements javax. Doc from javax.
Gets the resource parameters set for this request.
Resource parameters are additional portlet parameters added to the URL triggering the request that extend the state information provided by the render parameters.
| |
| isAsyncStarted | back to summary |
|---|---|
| public boolean isAsyncStarted() Implements javax. Doc from javax.
Checks if this request has been put into asynchronous mode.
A
This method returns
| |
| isAsyncSupported | back to summary |
|---|---|
| public boolean isAsyncSupported() Implements javax. Doc from javax.
Checks if this request supports asynchronous operation.
Asynchronous operation is disabled for this request if this request is within the scope of a filter or servlet that has not been annotated or flagged in the portlet configuration as being able to support asynchronous handling.
| |
| setRequest | back to summary |
|---|---|
| public void setRequest(ResourceRequest request) Sets the request object being wrapped.
| |
| startPortletAsync | back to summary |
|---|---|
| public PortletAsyncContext startPortletAsync() throws IllegalStateException Implements javax. Doc from javax.
Puts this request into asynchronous mode and initializes the
AsyncContext
object.
Calling this method will cause committal of the associated response to be delayed until
This method clears the list of
Subsequent invocations of this method, or its overloaded variant, will return
the same
The
The original
The
A portlet
| |
| startPortletAsync | back to summary |
|---|---|
| public PortletAsyncContext startPortletAsync(ResourceRequest request, ResourceResponse response) throws IllegalStateException Implements javax. Doc from javax.
Puts this request into asynchronous mode and initializes the
AsyncContext
object.
Calling this method will cause committal of the associated response to be delayed until
This method clears the list of
The
The
Subsequent invocations of this method, or its zero-argument variant, will return
the same
The
A portlet
| |