com.atlassian.httpclient.api
Class DefaultResponseTransformation<T>

java.lang.Object
  extended by 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 com.atlassian.httpclient.api.ResponseTransformation
ResponseTransformation.Builder<T>
 
Method Summary
 com.atlassian.util.concurrent.Promise<T> apply(ResponsePromise responsePromise)
          Converts the transformation into a promise for further mapping
static
<T> ResponseTransformation.Builder<T>
builder()
           
 com.google.common.base.Function<Throwable,? extends T> getFailFunction()
           
 com.google.common.base.Function<Response,T> getSuccessFunctions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.