Class AsyncResponseJunitTest
java.lang.Object
fr.gouv.vitam.common.server.application.junit.AsyncResponseJunitTest
- All Implemented Interfaces:
javax.ws.rs.container.AsyncResponse
Minimal implementation for AsyncResponse Tests in Junit
-
Field Summary
Fields inherited from interface javax.ws.rs.container.AsyncResponse
NO_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
boolean
cancel
(int retryAfter) boolean
boolean
boolean
isDone()
boolean
Collection<Class<?>>
Map<Class<?>,
Collection<Class<?>>> Collection<Class<?>>
Map<Class<?>,
Collection<Class<?>>> boolean
boolean
boolean
setTimeout
(long time, TimeUnit unit) void
setTimeoutHandler
(javax.ws.rs.container.TimeoutHandler handler)
-
Constructor Details
-
AsyncResponseJunitTest
public AsyncResponseJunitTest()
-
-
Method Details
-
resume
- Specified by:
resume
in interfacejavax.ws.rs.container.AsyncResponse
-
getResponse
-
resume
- Specified by:
resume
in interfacejavax.ws.rs.container.AsyncResponse
-
cancel
public boolean cancel()- Specified by:
cancel
in interfacejavax.ws.rs.container.AsyncResponse
-
cancel
public boolean cancel(int retryAfter) - Specified by:
cancel
in interfacejavax.ws.rs.container.AsyncResponse
-
cancel
- Specified by:
cancel
in interfacejavax.ws.rs.container.AsyncResponse
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspended
in interfacejavax.ws.rs.container.AsyncResponse
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfacejavax.ws.rs.container.AsyncResponse
-
isDone
public boolean isDone()- Specified by:
isDone
in interfacejavax.ws.rs.container.AsyncResponse
-
setTimeout
- Specified by:
setTimeout
in interfacejavax.ws.rs.container.AsyncResponse
-
setTimeoutHandler
public void setTimeoutHandler(javax.ws.rs.container.TimeoutHandler handler) - Specified by:
setTimeoutHandler
in interfacejavax.ws.rs.container.AsyncResponse
-
register
- Specified by:
register
in interfacejavax.ws.rs.container.AsyncResponse
-
register
- Specified by:
register
in interfacejavax.ws.rs.container.AsyncResponse
-
register
- Specified by:
register
in interfacejavax.ws.rs.container.AsyncResponse
-
register
- Specified by:
register
in interfacejavax.ws.rs.container.AsyncResponse
-