Package javax.servlet

Interface AsyncContext

    • Method Detail

      • addListener

        void addListener​(AsyncListener listener)
        Add the async listener.
        Parameters:
        listener - the async listener.
      • addListener

        void addListener​(AsyncListener listener,
                         ServletRequest servletRequest,
                         ServletResponse servletResponse)
        Add the async listener.
        Parameters:
        listener - the async listener.
        servletRequest - the servlet request.
        servletResponse - the servlet response.
      • complete

        void complete()
        Complete the request.
      • createListener

        <T extends AsyncListener> T createListener​(Class<T> clazz)
                                            throws ServletException
        Create the listener.
        Type Parameters:
        T - the listener type.
        Parameters:
        clazz - the class.
        Returns:
        the listener.
        Throws:
        ServletException - when a serv
      • dispatch

        void dispatch()
        Dispatch the request.
      • dispatch

        void dispatch​(ServletContext context,
                      String path)
        Dispatch the request.
        Parameters:
        context - the servlet context.
        path - the path.
      • dispatch

        void dispatch​(String path)
        Dispatch the request.
        Parameters:
        path - the path.
      • getRequest

        ServletRequest getRequest()
        Get the request.
        Returns:
        the request.
      • getResponse

        ServletResponse getResponse()
        Get the response.
        Returns:
        the response.
      • getTimeout

        long getTimeout()
        Get the timeout.
        Returns:
        the timeout.
      • hasOriginalRequestAndResponse

        boolean hasOriginalRequestAndResponse()
        Has the original request and response.
        Returns:
        true if it does, false otherwise.
      • setTimeout

        void setTimeout​(long timeout)
        Set the timeout.
        Parameters:
        timeout - the timeout.
      • start

        void start​(Runnable runnable)
        Start the thread.
        Parameters:
        runnable - the runnable.