Class AsyncResponseJunitTest

java.lang.Object
fr.gouv.vitam.common.server.application.junit.AsyncResponseJunitTest
All Implemented Interfaces:
javax.ws.rs.container.AsyncResponse

public class AsyncResponseJunitTest extends Object implements javax.ws.rs.container.AsyncResponse
Minimal implementation for AsyncResponse Tests in Junit
  • Constructor Details

    • AsyncResponseJunitTest

      public AsyncResponseJunitTest()
  • Method Details

    • resume

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

      public Object getResponse()
    • 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