Class AsyncResponseStub

  • All Implemented Interfaces:
    javax.ws.rs.container.AsyncResponse

    public class AsyncResponseStub
    extends Object
    implements javax.ws.rs.container.AsyncResponse
    • Field Detail

      • entity

        public Object entity
      • cancelled

        public boolean cancelled
      • timeout

        public long timeout
      • timeoutHandler

        public javax.ws.rs.container.TimeoutHandler timeoutHandler
    • Constructor Detail

      • AsyncResponseStub

        public AsyncResponseStub()
    • Method Detail

      • castEntity

        public <T> T castEntity​(Class<T> classToCastTo)
      • 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
      • setTimeout

        public boolean setTimeout​(long time,
                                  TimeUnit unit)
        Specified by:
        setTimeout 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
      • register

        public Collection<Class<?>> register​(Class<?> callback)
        Specified by:
        register in interface javax.ws.rs.container.AsyncResponse
      • register

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

        public Collection<Class<?>> register​(Object callback)
        Specified by:
        register in interface javax.ws.rs.container.AsyncResponse
      • register

        public Map<Class<?>,Collection<Class<?>>> register​(Object callback,
                                                           Object... callbacks)
        Specified by:
        register in interface javax.ws.rs.container.AsyncResponse