Interface ResponsePromise
A specific type of Promise for transforming a promise with a response into another object
with functions for different HTTP codes and situations
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.StateNested classes/interfaces inherited from interface io.atlassian.util.concurrent.Promise
io.atlassian.util.concurrent.Promise.TryConsumer<A> -
Method Summary
Modifier and TypeMethodDescription<T> io.atlassian.util.concurrent.Promise<T> transform(ResponseTransformation<T> transformation) Helps transforming this response promise into a new promise usingFunctionto transform response into a newT.Methods inherited from interface Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, stateMethods inherited from interface io.atlassian.util.concurrent.Promise
claim, done, fail, flatMap, fold, map, recover, then
-
Method Details
-
transform
Helps transforming this response promise into a new promise usingFunctionto transform response into a newT.- Type Parameters:
T- the type of the expected object once transformed.- Returns:
- a
Promise
-