com.atlassian.httpclient.api
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFailFunction
public com.google.common.base.Function<Throwable,? extends T> getFailFunction()
- Specified by:
getFailFunction in interface ResponseTransformation<T>
getSuccessFunctions
public com.google.common.base.Function<Response,T> getSuccessFunctions()
- Specified by:
getSuccessFunctions in interface ResponseTransformation<T>
apply
public com.atlassian.util.concurrent.Promise<T> apply(ResponsePromise responsePromise)
- Description copied from interface:
ResponseTransformation
- Converts the transformation into a promise for further mapping
- Specified by:
apply in interface ResponseTransformation<T>
- Returns:
- A promise that will return the object
builder
public static <T> ResponseTransformation.Builder<T> builder()
Copyright © 2012–2015 Atlassian. All rights reserved.