public class HttpTools extends Object
| Constructor and Description |
|---|
HttpTools(org.apache.http.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
String |
deleteRequest(URL url)
Execute a DELETE on the URL
|
String |
getRequest(URL url)
GET data from the URL
|
String |
postRequest(URL url,
String jsonBody)
POST content to the URL with the specified body
|
public String getRequest(URL url) throws MovieDbException
url - URL to use in the requestMovieDbException - exceptionpublic String deleteRequest(URL url) throws MovieDbException
url - URL to use in the requestMovieDbException - exceptionpublic String postRequest(URL url, String jsonBody) throws MovieDbException
url - URL to use in the requestjsonBody - Body to use in the requestMovieDbException - exceptionCopyright © 2012–2017. All rights reserved.