@Default public class OkClient extends Object implements HttpClient
| Modifier and Type | Field and Description |
|---|---|
static com.squareup.okhttp.MediaType |
JSON |
| Constructor and Description |
|---|
OkClient() |
| Modifier and Type | Method and Description |
|---|---|
RestResponse |
delete(String authToken,
String persona,
String url) |
RestResponse |
get(String authToken,
String persona,
String url) |
RestResponse |
post(String authToken,
String persona,
String url,
String json) |
RestResponse |
put(String authToken,
String persona,
String url,
String json) |
public RestResponse post(String authToken, String persona, String url, String json) throws IOException
post in interface HttpClientIOExceptionpublic RestResponse get(String authToken, String persona, String url) throws IOException
get in interface HttpClientIOExceptionpublic RestResponse put(String authToken, String persona, String url, String json) throws IOException
put in interface HttpClientIOExceptionpublic RestResponse delete(String authToken, String persona, String url) throws IOException
delete in interface HttpClientIOExceptionCopyright © 2016 Red Hat. All rights reserved.