Class DefaultResponseTransformation<T>
java.lang.Object
com.atlassian.httpclient.api.DefaultResponseTransformation<T>
- All Implemented Interfaces:
ResponseTransformation<T>
public final class DefaultResponseTransformation<T>
extends Object
implements ResponseTransformation<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ResponseTransformation
ResponseTransformation.Builder<T> -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.util.concurrent.Promise<T> apply(ResponsePromise responsePromise) Converts the transformation into a promise for further mappingstatic <T> ResponseTransformation.Builder<T> builder()
-
Method Details
-
getFailFunction
- Specified by:
getFailFunctionin interfaceResponseTransformation<T>
-
getSuccessFunctions
- Specified by:
getSuccessFunctionsin interfaceResponseTransformation<T>
-
apply
Description copied from interface:ResponseTransformationConverts the transformation into a promise for further mapping- Specified by:
applyin interfaceResponseTransformation<T>- Returns:
- A promise that will return the object
-
builder
-