T - The target object for the transformation.public interface ResponseTransformation<T>
ResponsePromise into a target object, allowing for transforming functions based on different
HTTP codes or exceptions. Under the covers, all functions are used in a fold() call.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResponseTransformation.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
io.atlassian.util.concurrent.Promise<T> |
apply(ResponsePromise responsePromise)
Converts the transformation into a promise for further mapping
|
Function<Throwable,? extends T> |
getFailFunction() |
Function<Response,T> |
getSuccessFunctions() |
io.atlassian.util.concurrent.Promise<T> apply(ResponsePromise responsePromise)
Copyright © 2012–2024 Atlassian. All rights reserved.