public class PortletAsyncEvent extends Object
ResourceRequest (via a call to ResourceRequest#startAsync or
 ResourceRequest#startAsync(ResourceRequest, ResouceResponse)) has completed, timed
 out, or produced an error.
 PortletAsyncContext, 
PortletAsyncEvent, 
ResourceRequest| Constructor and Description | 
|---|
| PortletAsyncEvent(PortletAsyncContext context)
 Constructs a  PortletAsyncEventfrom the givenPortletAsyncContext. | 
| PortletAsyncEvent(PortletAsyncContext context,
                 ResourceRequest request,
                 ResourceResponse response)
 Constructs a  PortletAsyncEventfrom the givenPortletAsyncContext,ResourceRequest, andResourceResponse. | 
| PortletAsyncEvent(PortletAsyncContext context,
                 ResourceRequest request,
                 ResourceResponse response,
                 Throwable throwable)
 Constructs a  PortletAsyncEventfrom the givenPortletAsyncContext,ResourceRequest,ResourceResponse, 
 andThrowable. | 
| PortletAsyncEvent(PortletAsyncContext context,
                 Throwable throwable)
 Constructs a  PortletAsyncEventfrom the givenPortletAsyncContextandThrowable. | 
| Modifier and Type | Method and Description | 
|---|---|
| PortletAsyncContext | getPortletAsyncContext()
 Gets the portlet asynchronous context object associated with the event. | 
| ResourceRequest | getSuppliedRequest()
 Gets the resource request associated with the listener when it was added through the 
  PortletAsyncContext#addListener(PortletAsyncListener, ResourceRequest, ResourceResponse)method. | 
| ResourceResponse | getSuppliedResponse()
 Gets the resource response associated with the listener when it was added through the 
  PortletAsyncContext#addListener(PortletAsyncListener, ResourceRequest, ResourceResponse)method. | 
| Throwable | getThrowable()
 Gets the  Throwableassociated with the event. | 
public PortletAsyncEvent(PortletAsyncContext context, ResourceRequest request, ResourceResponse response, Throwable throwable)
PortletAsyncEvent from the given 
 PortletAsyncContext, ResourceRequest, ResourceResponse, 
 and Throwable.
 context - request - response - throwable - public PortletAsyncEvent(PortletAsyncContext context, ResourceRequest request, ResourceResponse response)
PortletAsyncEvent from the given 
 PortletAsyncContext, ResourceRequest, and ResourceResponse.
 context - request - response - public PortletAsyncEvent(PortletAsyncContext context, Throwable throwable)
PortletAsyncEvent from the given 
 PortletAsyncContext and Throwable.
 context - throwable - public PortletAsyncEvent(PortletAsyncContext context)
PortletAsyncEvent from the given 
 PortletAsyncContext.
 context - public PortletAsyncContext getPortletAsyncContext()
public ResourceRequest getSuppliedRequest()
PortletAsyncContext#addListener(PortletAsyncListener, ResourceRequest, ResourceResponse)
 method. 
 
 If the listener was added through the 
 PortletAsyncContext#addListener(PortletAsyncListener) method,
 the returned resource request will be null.
 
null
 if no resource request was provided.public ResourceResponse getSuppliedResponse()
PortletAsyncContext#addListener(PortletAsyncListener, ResourceRequest, ResourceResponse)
 method. 
 
 If the listener was added through the 
 PortletAsyncContext#addListener(PortletAsyncListener) method,
 the returned resource response will be null.
 
null
 if no resource response was provided.public Throwable getThrowable()
Throwable associated with the event.
 Throwable that was used to initialize the event, or null
 if no Throwable was provided.Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.