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 TypeMethodDescriptionvoid
addListener
(PortletAsyncListener portletAsyncListener) void
addListener
(PortletAsyncListener portletAsyncListener, ResourceRequest resourceRequest, ResourceResponse resourceResponse) void
complete()
<T extends PortletAsyncListener>
TcreatePortletAsyncListener
(Class<T> listenerClass) void
dispatch()
void
com.liferay.portal.kernel.portlet.async.PortletAsyncScopeManager
long
boolean
protected void
initialize
(ResourceRequest resourceRequest, ResourceResponse resourceResponse, PortletConfig portletConfig, javax.servlet.AsyncContext asyncContext, boolean hasOriginalRequestAndResponse) boolean
void
void
setTimeout
(long timeout) void
-
Constructor Details
-
PortletAsyncContextImpl
public PortletAsyncContextImpl()
-
-
Method Details
-
addListener
- Specified by:
addListener
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
addListener
public void addListener(PortletAsyncListener portletAsyncListener, ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException - Specified by:
addListener
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
complete
- Specified by:
complete
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
createPortletAsyncListener
public <T extends PortletAsyncListener> T createPortletAsyncListener(Class<T> listenerClass) throws PortletException - Specified by:
createPortletAsyncListener
in interfacePortletAsyncContext
- Throws:
PortletException
-
dispatch
- Specified by:
dispatch
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
dispatch
- Specified by:
dispatch
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
getPortletAsyncScopeManager
public com.liferay.portal.kernel.portlet.async.PortletAsyncScopeManager getPortletAsyncScopeManager() -
getResourceRequest
- Specified by:
getResourceRequest
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
getResourceResponse
- Specified by:
getResourceResponse
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
getTimeout
public long getTimeout()- Specified by:
getTimeout
in interfacePortletAsyncContext
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()- Specified by:
hasOriginalRequestAndResponse
in interfacePortletAsyncContext
-
isCalledDispatch
public boolean isCalledDispatch() -
setReturnedToContainer
public void setReturnedToContainer() -
setTimeout
public void setTimeout(long timeout) - Specified by:
setTimeout
in interfacePortletAsyncContext
-
start
- Specified by:
start
in interfacePortletAsyncContext
- Throws:
IllegalStateException
-
initialize
protected void initialize(ResourceRequest resourceRequest, ResourceResponse resourceResponse, PortletConfig portletConfig, javax.servlet.AsyncContext asyncContext, boolean hasOriginalRequestAndResponse)
-