com.atlassian.httpclient.api
Interface ResponsePromise

All Superinterfaces:
BaseResponsePromise<Response>, java.util.concurrent.Future<Response>, com.google.common.util.concurrent.ListenableFuture<Response>, com.atlassian.util.concurrent.Promise<Response>

public interface ResponsePromise
extends BaseResponsePromise<Response>

A specific type of BaseResponsePromise for handling a response promise for a single HTTP request


Method Summary
<T> ResponsePromiseTransformationBuilder<T>
transform()
          Helps transforming this response promise into a new promise using Function to transform response into a new T.
 
Methods inherited from interface com.atlassian.httpclient.api.BaseResponsePromise
badRequest, clientError, conflict, created, done, error, fail, forbidden, informational, internalServerError, noContent, notFound, notModified, notSuccessful, ok, on, others, otherwise, redirection, seeOther, serverError, serviceUnavailable, successful, then, unauthorized
 
Methods inherited from interface com.atlassian.util.concurrent.Promise
claim, flatMap, fold, map, recover
 
Methods inherited from interface com.google.common.util.concurrent.ListenableFuture
addListener
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

transform

<T> ResponsePromiseTransformationBuilder<T> transform()
Helps transforming this response promise into a new promise using Function to transform response into a new T.

Type Parameters:
T - the type of the expected object once transformed.
Returns:
a com.atlassian.util.concurrent.Promise


Copyright © 2012 Atlassian. All Rights Reserved.