public interface PortletAsyncListener
ResourceRequest
to which the listener had been added has
completed, timed out, or resulted in an error.
PortletAsyncContext
,
PortletAsyncEvent
Modifier and Type | Method and Description |
---|---|
void |
onComplete(PortletAsyncEvent evt)
Notifies this
PortletAsyncListener that an asynchronous operation
has been completed. |
void |
onError(PortletAsyncEvent evt)
Notifies this
PortletAsyncListener that an asynchronous
operation has failed to complete. |
void |
onStartAsync(PortletAsyncEvent evt)
Notifies this
PortletAsyncListener that a new asynchronous cycle is
being initiated via a call to one of the ResourceRequest #startAsync
methods. |
void |
onTimeout(PortletAsyncEvent evt)
Notifies this
PortletAsyncListener that an asynchronous operation
has timed out. |
void onComplete(PortletAsyncEvent evt) throws IOException
PortletAsyncListener
that an asynchronous operation
has been completed.
The PortletAsyncContext
corresponding to the asynchronous
operation that has been completed may be obtained by calling
getAsyncContext
on the given event.
In addition, if this PortletAsyncListener
had been registered
via a call to PortletAsyncContext#addListener(PortletAsyncListener,
ResourceRequest, ResourceResponse)
, the supplied
ResourceRequest
and ResourceResponse
objects may
be retrieved by calling getSuppliedRequest
and
getSuppliedResponse
, respectively, on the given event.
The PortletAsyncContext
dispatch and complete methods may not be invoked
within this method.
evt
- the PortletAsyncEvent
indicating that an asynchronous operation has been completedIOException
- if an I/O related error has occurred during the processingvoid onError(PortletAsyncEvent evt) throws IOException
PortletAsyncListener
that an asynchronous
operation has failed to complete.
The PortletAsyncContext
corresponding to the asynchronous
operation that failed to complete may be obtained by calling
getAsyncContext
on the given event.
In addition, if this PortletAsyncListener
had been registered
via a call to PortletAsyncContext#addListener(PortletAsyncListener,
ResourceRequest, ResourceResponse)
, the supplied
ResourceRequest
and ResourceResponse
objects may
be retrieved by calling getSuppliedRequest
and
getSuppliedResponse
, respectively, on the given event.
The PortletAsyncContext
dispatch and complete methods may be invoked
within this method.
evt
- the PortletAsyncEvent indicating that an asynchronous operation has
encountered an errorIOException
- if an I/O related error has occurred during the processingvoid onStartAsync(PortletAsyncEvent evt) throws IOException
PortletAsyncListener
that a new asynchronous cycle is
being initiated via a call to one of the ResourceRequest
#startAsync
methods.
The PortletAsyncContext
corresponding to the asynchronous
operation that is being reinitialized may be obtained by calling
getAsyncContext
on the given event.
In addition, if this PortletAsyncListener
had been registered
via a call to PortletAsyncContext#addListener(PortletAsyncListener,
ResourceRequest, ResourceResponse)
, the supplied
ResourceRequest
and ResourceResponse
objects may
be retrieved by calling getSuppliedRequest
and
getSuppliedResponse
, respectively, on the given event.
This PortletAsyncListener
will not receive any events related
to the new asynchronous cycle unless it registers itself (via a call to
PortletAsyncContext
#addListener) with the
PortletAsyncContext
that is delivered as part of the given
event.
evt
- the PortletAsyncEvent indicating that an asynchronous operation
is being initiatedIOException
- if an I/O related error has occurred during the processingvoid onTimeout(PortletAsyncEvent evt) throws IOException
PortletAsyncListener
that an asynchronous operation
has timed out.
The PortletAsyncContext
corresponding to the asynchronous
operation that has timed out may be obtained by calling
getAsyncContext
on the given event.
In addition, if this PortletAsyncListener
had been registered
via a call to PortletAsyncContext#addListener(PortletAsyncListener,
ResourceRequest, ResourceResponse)
, the supplied
ResourceRequest
and ResourceResponse
objects may
be retrieved by calling getSuppliedRequest
and
getSuppliedResponse
, respectively, on the given event.
The PortletAsyncContext
dispatch and complete methods may be invoked
within this method.
evt
- the PortletAsyncEvent indicating that an asynchronous operation has
timed outIOException
- if an I/O related error has occurred during the processingJava Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.