Class PortletAsyncContextImpl

java.lang.Object
com.liferay.portlet.internal.PortletAsyncContextImpl
All Implemented Interfaces:
javax.portlet.PortletAsyncContext

public class PortletAsyncContextImpl extends Object implements javax.portlet.PortletAsyncContext
Author:
Neil Griffin, Dante Wang, Leon Chi
  • Constructor Details

    • PortletAsyncContextImpl

      public PortletAsyncContextImpl()
  • Method Details

    • addListener

      public void addListener(javax.portlet.PortletAsyncListener portletAsyncListener) throws IllegalStateException
      Specified by:
      addListener in interface javax.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • addListener

      public void addListener(javax.portlet.PortletAsyncListener portletAsyncListener, javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws IllegalStateException
      Specified by:
      addListener in interface javax.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • complete

      public void complete() throws IllegalStateException
      Specified by:
      complete in interface javax.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • createPortletAsyncListener

      public <T extends javax.portlet.PortletAsyncListener> T createPortletAsyncListener(Class<T> listenerClass) throws javax.portlet.PortletException
      Specified by:
      createPortletAsyncListener in interface javax.portlet.PortletAsyncContext
      Throws:
      javax.portlet.PortletException
    • dispatch

      public void dispatch() throws IllegalStateException
      Specified by:
      dispatch in interface javax.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • dispatch

      public void dispatch(String path) throws IllegalStateException
      Specified by:
      dispatch in interface javax.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • getPortletAsyncScopeManager

      public com.liferay.portal.kernel.portlet.async.PortletAsyncScopeManager getPortletAsyncScopeManager()
    • getResourceRequest

      public javax.portlet.ResourceRequest getResourceRequest() throws IllegalStateException
      Specified by:
      getResourceRequest in interface javax.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • getResourceResponse

      public javax.portlet.ResourceResponse getResourceResponse() throws IllegalStateException
      Specified by:
      getResourceResponse in interface javax.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • getTimeout

      public long getTimeout()
      Specified by:
      getTimeout in interface javax.portlet.PortletAsyncContext
    • hasOriginalRequestAndResponse

      public boolean hasOriginalRequestAndResponse()
      Specified by:
      hasOriginalRequestAndResponse in interface javax.portlet.PortletAsyncContext
    • isCalledDispatch

      public boolean isCalledDispatch()
    • setReturnedToContainer

      public void setReturnedToContainer()
    • setTimeout

      public void setTimeout(long timeout)
      Specified by:
      setTimeout in interface javax.portlet.PortletAsyncContext
    • start

      public void start(Runnable runnable) throws IllegalStateException
      Specified by:
      start in interface javax.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)