Class Servlet3AsyncHttpRequest.Servlet3ExecutionContext.Servle3AsychronousResponse

java.lang.Object
org.jboss.resteasy.core.AbstractAsynchronousResponse
org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest.Servlet3ExecutionContext.Servle3AsychronousResponse
All Implemented Interfaces:
EventListener, javax.servlet.AsyncListener, javax.ws.rs.container.AsyncResponse, ResteasyAsynchronousResponse
Enclosing class:
Servlet3AsyncHttpRequest.Servlet3ExecutionContext

private class Servlet3AsyncHttpRequest.Servlet3ExecutionContext.Servle3AsychronousResponse extends AbstractAsynchronousResponse implements javax.servlet.AsyncListener
  • Field Details

  • Constructor Details

    • Servle3AsychronousResponse

      private Servle3AsychronousResponse()
  • Method Details

    • resume

      public boolean resume(Object entity)
      Specified by:
      resume in interface javax.ws.rs.container.AsyncResponse
    • resume

      public boolean resume(Throwable exc)
      Specified by:
      resume in interface javax.ws.rs.container.AsyncResponse
    • initialRequestThreadFinished

      public void initialRequestThreadFinished()
      Description copied from interface: ResteasyAsynchronousResponse
      Callback by the initial http request thread. It is used to help simulate suspend/resume asynchronous semantics in containers that do not support asychronous HTTP. This method is a no-op in environments that support async HTTP.
      Specified by:
      initialRequestThreadFinished in interface ResteasyAsynchronousResponse
    • setTimeout

      public boolean setTimeout(long time, TimeUnit unit) throws IllegalStateException
      Specified by:
      setTimeout in interface javax.ws.rs.container.AsyncResponse
      Throws:
      IllegalStateException
    • cancel

      public boolean cancel()
      Specified by:
      cancel in interface javax.ws.rs.container.AsyncResponse
    • cancel

      public boolean cancel(int retryAfter)
      Specified by:
      cancel in interface javax.ws.rs.container.AsyncResponse
    • cancel

      public boolean cancel(Date retryAfter)
      Specified by:
      cancel in interface javax.ws.rs.container.AsyncResponse
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface javax.ws.rs.container.AsyncResponse
    • isDone

      public boolean isDone()
      Specified by:
      isDone in interface javax.ws.rs.container.AsyncResponse
    • isSuspended

      public boolean isSuspended()
      Specified by:
      isSuspended in interface javax.ws.rs.container.AsyncResponse
    • onComplete

      public void onComplete(javax.servlet.AsyncEvent asyncEvent) throws IOException
      Specified by:
      onComplete in interface javax.servlet.AsyncListener
      Throws:
      IOException
    • onTimeout

      public void onTimeout(javax.servlet.AsyncEvent asyncEvent) throws IOException
      Specified by:
      onTimeout in interface javax.servlet.AsyncListener
      Throws:
      IOException
    • handleTimeout

      protected void handleTimeout()
    • onError

      public void onError(javax.servlet.AsyncEvent asyncEvent) throws IOException
      Specified by:
      onError in interface javax.servlet.AsyncListener
      Throws:
      IOException
    • onStartAsync

      public void onStartAsync(javax.servlet.AsyncEvent asyncEvent) throws IOException
      Specified by:
      onStartAsync in interface javax.servlet.AsyncListener
      Throws:
      IOException