Class AsyncResponseImpl

java.lang.Object
org.apache.cxf.jaxrs.impl.AsyncResponseImpl
All Implemented Interfaces:
jakarta.ws.rs.container.AsyncResponse, org.apache.cxf.continuations.ContinuationCallback

public class AsyncResponseImpl extends Object implements jakarta.ws.rs.container.AsyncResponse, org.apache.cxf.continuations.ContinuationCallback
  • Constructor Details

    • AsyncResponseImpl

      public AsyncResponseImpl(org.apache.cxf.message.Message inMessage)
  • Method Details

    • resume

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

      public boolean resume(Throwable response)
      Specified by:
      resume in interface jakarta.ws.rs.container.AsyncResponse
    • cancel

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

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

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

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

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

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

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

      public void setTimeoutHandler(jakarta.ws.rs.container.TimeoutHandler handler)
      Specified by:
      setTimeoutHandler in interface jakarta.ws.rs.container.AsyncResponse
    • register

      public Collection<Class<?>> register(Class<?> callback) throws NullPointerException
      Specified by:
      register in interface jakarta.ws.rs.container.AsyncResponse
      Throws:
      NullPointerException
    • register

      public Map<Class<?>,Collection<Class<?>>> register(Class<?> callback, Class<?>... callbacks) throws NullPointerException
      Specified by:
      register in interface jakarta.ws.rs.container.AsyncResponse
      Throws:
      NullPointerException
    • register

      public Collection<Class<?>> register(Object callback) throws NullPointerException
      Specified by:
      register in interface jakarta.ws.rs.container.AsyncResponse
      Throws:
      NullPointerException
    • register

      public Map<Class<?>,Collection<Class<?>>> register(Object callback, Object... callbacks) throws NullPointerException
      Specified by:
      register in interface jakarta.ws.rs.container.AsyncResponse
      Throws:
      NullPointerException
    • onComplete

      public void onComplete()
      Specified by:
      onComplete in interface org.apache.cxf.continuations.ContinuationCallback
    • onError

      public void onError(Throwable error)
      Specified by:
      onError in interface org.apache.cxf.continuations.ContinuationCallback
    • onDisconnect

      public void onDisconnect()
      Specified by:
      onDisconnect in interface org.apache.cxf.continuations.ContinuationCallback
    • suspendContinuationIfNeeded

      public boolean suspendContinuationIfNeeded()
    • getResponseObject

      public Object getResponseObject()
    • isResumedByApplication

      public boolean isResumedByApplication()
    • handleTimeout

      public void handleTimeout()
    • prepareContinuation

      public void prepareContinuation()
    • setUnmappedThrowable

      public void setUnmappedThrowable(Throwable t)
    • reset

      public void reset()