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 |
|---|---|
com.atlassian.util.concurrent.Promise<T> |
apply(ResponsePromise responsePromise)
Converts the transformation into a promise for further mapping
|
com.google.common.base.Function<Throwable,? extends T> |
getFailFunction() |
com.google.common.base.Function<Response,T> |
getSuccessFunctions() |
com.atlassian.util.concurrent.Promise<T> apply(ResponsePromise responsePromise)
Copyright © 2012–2018 Atlassian. All rights reserved.