public class PortletAsyncContextImpl extends Object implements PortletAsyncContext
| Constructor and Description |
|---|
PortletAsyncContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PortletAsyncListener portletAsyncListener) |
void |
addListener(PortletAsyncListener portletAsyncListener,
ResourceRequest resourceRequest,
ResourceResponse resourceResponse) |
void |
complete() |
<T extends PortletAsyncListener> |
createPortletAsyncListener(Class<T> listenerClass) |
void |
dispatch() |
void |
dispatch(String path) |
com.liferay.portal.kernel.portlet.async.PortletAsyncScopeManager |
getPortletAsyncScopeManager() |
ResourceRequest |
getResourceRequest() |
ResourceResponse |
getResourceResponse() |
long |
getTimeout() |
boolean |
hasOriginalRequestAndResponse() |
protected void |
initialize(ResourceRequest resourceRequest,
ResourceResponse resourceResponse,
PortletConfig portletConfig,
javax.servlet.AsyncContext asyncContext,
boolean hasOriginalRequestAndResponse) |
boolean |
isCalledDispatch() |
void |
setReturnedToContainer() |
void |
setTimeout(long timeout) |
void |
start(Runnable runnable) |
public void addListener(PortletAsyncListener portletAsyncListener) throws IllegalStateException
addListener in interface PortletAsyncContextIllegalStateExceptionpublic void addListener(PortletAsyncListener portletAsyncListener, ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException
addListener in interface PortletAsyncContextIllegalStateExceptionpublic void complete()
throws IllegalStateException
complete in interface PortletAsyncContextIllegalStateExceptionpublic <T extends PortletAsyncListener> T createPortletAsyncListener(Class<T> listenerClass) throws PortletException
createPortletAsyncListener in interface PortletAsyncContextPortletExceptionpublic void dispatch()
throws IllegalStateException
dispatch in interface PortletAsyncContextIllegalStateExceptionpublic void dispatch(String path)
throws IllegalStateException
dispatch in interface PortletAsyncContextIllegalStateExceptionpublic com.liferay.portal.kernel.portlet.async.PortletAsyncScopeManager getPortletAsyncScopeManager()
public ResourceRequest getResourceRequest() throws IllegalStateException
getResourceRequest in interface PortletAsyncContextIllegalStateExceptionpublic ResourceResponse getResourceResponse() throws IllegalStateException
getResourceResponse in interface PortletAsyncContextIllegalStateExceptionpublic long getTimeout()
getTimeout in interface PortletAsyncContextpublic boolean hasOriginalRequestAndResponse()
hasOriginalRequestAndResponse in interface PortletAsyncContextpublic boolean isCalledDispatch()
public void setReturnedToContainer()
public void setTimeout(long timeout)
setTimeout in interface PortletAsyncContextpublic void start(Runnable runnable)
throws IllegalStateException
start in interface PortletAsyncContextIllegalStateExceptionprotected void initialize(ResourceRequest resourceRequest, ResourceResponse resourceResponse, PortletConfig portletConfig, javax.servlet.AsyncContext asyncContext, boolean hasOriginalRequestAndResponse)