Class AsyncResponseImpl

  • All Implemented Interfaces:
    javax.ws.rs.container.AsyncResponse, org.apache.cxf.continuations.ContinuationCallback

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

      • AsyncResponseImpl

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

      • resume

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

        public boolean resume​(Throwable response)
        Specified by:
        resume in interface javax.ws.rs.container.AsyncResponse
      • 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
      • isSuspended

        public boolean isSuspended()
        Specified by:
        isSuspended 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
      • setTimeoutHandler

        public void setTimeoutHandler​(javax.ws.rs.container.TimeoutHandler handler)
        Specified by:
        setTimeoutHandler in interface javax.ws.rs.container.AsyncResponse
      • 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()