@Singleton
public class ResponseStatusFromPayloadHttpCommandExecutorService
extends org.jclouds.http.internal.JavaUrlHttpCommandExecutorService
The DigitalOcean API always return 200 codes even if a request failed due to some internal error, but populates an
ERROR string in the response payload.
This class will read the body of the response and populate a 500 status code if an error is found.
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESS_DENIED |
static String |
NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
protected org.jclouds.http.HttpResponse |
invoke(HttpURLConnection connection) |
cleanup, configureRequestHeaders, convert, initConnection, writeNothingpublic static final String ACCESS_DENIED
public static final String NOT_FOUND
protected org.jclouds.http.HttpResponse invoke(HttpURLConnection connection) throws IOException, InterruptedException
invoke in class org.jclouds.http.internal.JavaUrlHttpCommandExecutorServiceIOExceptionInterruptedExceptionCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.