Class PortletAsyncContextImpl

Object
com.liferay.portlet.internal.PortletAsyncContextImpl
All Implemented Interfaces:
jakarta.portlet.PortletAsyncContext

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

    • PortletAsyncContextImpl

      public PortletAsyncContextImpl()
  • Method Details

    • addListener

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

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

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

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

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

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

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

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

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

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

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

      public boolean isCalledDispatch()
    • setReturnedToContainer

      public void setReturnedToContainer()
    • setTimeout

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

      public void start(Runnable runnable) throws IllegalStateException
      Specified by:
      start in interface jakarta.portlet.PortletAsyncContext
      Throws:
      IllegalStateException
    • initialize

      protected void initialize(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse, jakarta.portlet.PortletConfig portletConfig, jakarta.servlet.AsyncContext asyncContext, boolean hasOriginalRequestAndResponse)