|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InvocationContext
Injectable invocation context that can be used to control various aspects of the invocation, e.g. the threading model.
| Nested Class Summary | |
|---|---|
static class |
InvocationContext.State
Invocation context state. |
| Method Summary | |
|---|---|
java.util.concurrent.Future<Response> |
getInflectedResponse()
Return the response future that provides a response returned by an inflector. |
InvocationContext.State |
state()
Get the current state of the invocation context. |
boolean |
trySuspend()
Try to suspend the request invocation. |
| Methods inherited from interface javax.ws.rs.core.ExecutionContext |
|---|
cancel, getResponse, isCancelled, isDone, isSuspended, resume, resume, setResponse, setSuspendTimeout, suspend, suspend, suspend |
| Method Detail |
|---|
InvocationContext.State state()
boolean trySuspend()
suspend the request invocation.
Unlike the suspend() method, this method does not throw an exception
in case the suspend operation fails. Instead, the method returns true
if the invocation has been suspended successfully, returns false
otherwise.
true if the invocation has been suspended successfully,
returns false otherwise.java.util.concurrent.Future<Response> getInflectedResponse()
ResponseProcessor to retrieve the
application-layer response information before the response processing is
executed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||