org.jclouds.http
Interface TransformingHttpCommand<T>

All Superinterfaces:
HttpCommand
All Known Implementing Classes:
TransformingHttpCommandImpl

public interface TransformingHttpCommand<T>
extends HttpCommand

Command that utilizes RESTFul apis and extracts T from the HttpResponse.

Author:
Adrian Cole

Method Summary
 com.google.common.util.concurrent.ListenableFuture<T> execute()
          invoke and transform the response <R> into value type <T>
 
Methods inherited from interface org.jclouds.http.HttpCommand
getCurrentRequest, getException, getFailureCount, getRedirectCount, incrementFailureCount, incrementRedirectCount, isReplayable, setCurrentRequest, setException
 

Method Detail

execute

com.google.common.util.concurrent.ListenableFuture<T> execute()
                                                              throws ExecutionException
invoke and transform the response <R> into value type <T>

Returns:
future containing the expected value
Throws:
ExecutionException - if there is a fatal error preventing the command from invoking


Copyright © 2009-2011 jclouds. All Rights Reserved.