Package org.jclouds.profitbricks.http
Class ResponseStatusFromPayloadHttpCommandExecutorService
- java.lang.Object
-
- org.jclouds.http.internal.BaseHttpCommandExecutorService<HttpURLConnection>
-
- org.jclouds.http.internal.JavaUrlHttpCommandExecutorService
-
- org.jclouds.profitbricks.http.ResponseStatusFromPayloadHttpCommandExecutorService
-
- All Implemented Interfaces:
HttpCommandExecutorService
@Singleton public class ResponseStatusFromPayloadHttpCommandExecutorService extends JavaUrlHttpCommandExecutorService
Custom implementation of the HTTP driver to read actual http status and message from SOAP Fault.
ProfitBricks API errors are always returned with 500 HTTP code. This class parses and reads the SOAP response to map the actual http code and message
-
-
Field Summary
-
Fields inherited from class org.jclouds.http.internal.JavaUrlHttpCommandExecutorService
outputSocketBufferSize, proxyForURI, sslContextSupplier, untrustedSSLContextProvider, userAgent, verifier
-
Fields inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
contentMetadataCodec, errorHandler, headerLog, ioRetryHandler, logger, retryHandler, utils, wire
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpResponse
invoke(HttpURLConnection connection)
-
Methods inherited from class org.jclouds.http.internal.JavaUrlHttpCommandExecutorService
cleanup, configureRequestHeaders, convert, initConnection, writeNothing
-
Methods inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
invoke
-
-
-
-
Method Detail
-
invoke
protected HttpResponse invoke(HttpURLConnection connection) throws IOException, InterruptedException
- Overrides:
invoke
in classJavaUrlHttpCommandExecutorService
- Throws:
IOException
InterruptedException
-
-