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 PortletAsyncContext
IllegalStateException
public void addListener(PortletAsyncListener portletAsyncListener, ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException
addListener
in interface PortletAsyncContext
IllegalStateException
public void complete() throws IllegalStateException
complete
in interface PortletAsyncContext
IllegalStateException
public <T extends PortletAsyncListener> T createPortletAsyncListener(Class<T> listenerClass) throws PortletException
createPortletAsyncListener
in interface PortletAsyncContext
PortletException
public void dispatch() throws IllegalStateException
dispatch
in interface PortletAsyncContext
IllegalStateException
public void dispatch(String path) throws IllegalStateException
dispatch
in interface PortletAsyncContext
IllegalStateException
public com.liferay.portal.kernel.portlet.async.PortletAsyncScopeManager getPortletAsyncScopeManager()
public ResourceRequest getResourceRequest() throws IllegalStateException
getResourceRequest
in interface PortletAsyncContext
IllegalStateException
public ResourceResponse getResourceResponse() throws IllegalStateException
getResourceResponse
in interface PortletAsyncContext
IllegalStateException
public long getTimeout()
getTimeout
in interface PortletAsyncContext
public boolean hasOriginalRequestAndResponse()
hasOriginalRequestAndResponse
in interface PortletAsyncContext
public boolean isCalledDispatch()
public void setReturnedToContainer()
public void setTimeout(long timeout)
setTimeout
in interface PortletAsyncContext
public void start(Runnable runnable) throws IllegalStateException
start
in interface PortletAsyncContext
IllegalStateException
protected void initialize(ResourceRequest resourceRequest, ResourceResponse resourceResponse, PortletConfig portletConfig, javax.servlet.AsyncContext asyncContext, boolean hasOriginalRequestAndResponse)