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