Order Put & Delete
~ Order: get, post, put, delete
@@ -67,10 +67,10 @@ public interface HttpManager {
ServiceUnavailableException;
/**
- * Perform an HTTP DELETE request to the specified URL.
+ * Perform an HTTP PUT request to the specified URL.
*
- * @param url the {@link Url} to HTTP DELETE.
- * @return a String containing the body of the HTTP DELETE response.
+ * @param url the {@link Url} to HTTP PUT.
+ * @return a String containing the body of the HTTP PUTresponse.
* @throws IOException In case of networking issues.
* @throws NoContentException The request has succeeded but returns no message body.
* @throws BadRequestException The request could not be understood by the server due to malformed syntax.
@@ -82,7 +82,7 @@ public interface HttpManager {
* @throws UnauthorizedException The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
* @throws ServiceUnavailableException The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again.
*/
- String delete(Url url) throws
+ String put(Url url) throws
IOException,
NoContentException,
BadRequestException,
@@ -95,10 +95,10 @@ public interface HttpManager {
ServiceUnavailableException;
/**
- * Perform an HTTP PUT request to the specified URL.
+ * Perform an HTTP DELETE request to the specified URL.
*
- * @param url the {@link Url} to HTTP PUT.
- * @return a String containing the body of the HTTP PUTresponse.
+ * @param url the {@link Url} to HTTP DELETE.
+ * @return a String containing the body of the HTTP DELETE response.
* @throws IOException In case of networking issues.
* @throws NoContentException The request has succeeded but returns no message body.
* @throws BadRequestException The request could not be understood by the server due to malformed syntax.
@@ -110,7 +110,7 @@ public interface HttpManager {
* @throws UnauthorizedException The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
* @throws ServiceUnavailableException The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again.
*/
- String put(Url url) throws
+ String delete(Url url) throws
IOException,
NoContentException,
BadRequestException,
