Package com.liferay.portlet.internal
Class PortletAsyncContextImpl
java.lang.Object
com.liferay.portlet.internal.PortletAsyncContextImpl
- All Implemented Interfaces:
javax.portlet.PortletAsyncContext
- Author:
- Neil Griffin, Dante Wang, Leon Chi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(javax.portlet.PortletAsyncListener portletAsyncListener) voidaddListener(javax.portlet.PortletAsyncListener portletAsyncListener, javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) voidcomplete()<T extends javax.portlet.PortletAsyncListener>
TcreatePortletAsyncListener(Class<T> listenerClass) voiddispatch()voidcom.liferay.portal.kernel.portlet.async.PortletAsyncScopeManagerjavax.portlet.ResourceRequestjavax.portlet.ResourceResponselongbooleanprotected voidinitialize(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse, javax.portlet.PortletConfig portletConfig, javax.servlet.AsyncContext asyncContext, boolean hasOriginalRequestAndResponse) booleanvoidvoidsetTimeout(long timeout) void
-
Constructor Details
-
PortletAsyncContextImpl
public PortletAsyncContextImpl()
-
-
Method Details
-
addListener
public void addListener(javax.portlet.PortletAsyncListener portletAsyncListener) throws IllegalStateException - Specified by:
addListenerin interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
addListener
public void addListener(javax.portlet.PortletAsyncListener portletAsyncListener, javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws IllegalStateException - Specified by:
addListenerin interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
complete
- Specified by:
completein interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
createPortletAsyncListener
public <T extends javax.portlet.PortletAsyncListener> T createPortletAsyncListener(Class<T> listenerClass) throws javax.portlet.PortletException - Specified by:
createPortletAsyncListenerin interfacejavax.portlet.PortletAsyncContext- Throws:
javax.portlet.PortletException
-
dispatch
- Specified by:
dispatchin interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
dispatch
- Specified by:
dispatchin interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
getPortletAsyncScopeManager
public com.liferay.portal.kernel.portlet.async.PortletAsyncScopeManager getPortletAsyncScopeManager() -
getResourceRequest
- Specified by:
getResourceRequestin interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
getResourceResponse
- Specified by:
getResourceResponsein interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
getTimeout
public long getTimeout()- Specified by:
getTimeoutin interfacejavax.portlet.PortletAsyncContext
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()- Specified by:
hasOriginalRequestAndResponsein interfacejavax.portlet.PortletAsyncContext
-
isCalledDispatch
public boolean isCalledDispatch() -
setReturnedToContainer
public void setReturnedToContainer() -
setTimeout
public void setTimeout(long timeout) - Specified by:
setTimeoutin interfacejavax.portlet.PortletAsyncContext
-
start
- Specified by:
startin interfacejavax.portlet.PortletAsyncContext- Throws:
IllegalStateException
-
initialize
protected void initialize(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse, javax.portlet.PortletConfig portletConfig, javax.servlet.AsyncContext asyncContext, boolean hasOriginalRequestAndResponse)
-