public final class JSONRestClient extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
JSONRestClient.MediaType |
protected class |
JSONRestClient.Response |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.client.HttpClient |
httpClient |
| Modifier | Constructor and Description |
|---|---|
protected |
JSONRestClient(String url,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
append(String url,
String... segments) |
protected String |
appendToBaseURL(String... segments) |
protected String |
appendToURL(String... segments) |
protected JSONRestClient.Response |
doGet() |
protected JSONRestClient.Response |
doGet(String url) |
protected org.apache.http.HttpHost |
host() |
protected JSONRestClient.Response |
postStream(InputStream is,
String url,
String requestContentType) |
protected JSONRestClient.Response |
postStreamTextPlain(InputStream is,
String url,
String requestContentType) |
protected String |
url() |
protected final org.apache.http.client.HttpClient httpClient
protected JSONRestClient(String url, String username, String password)
protected org.apache.http.HttpHost host()
protected JSONRestClient.Response doGet()
protected JSONRestClient.Response doGet(String url)
protected JSONRestClient.Response postStream(InputStream is, String url, String requestContentType)
protected JSONRestClient.Response postStreamTextPlain(InputStream is, String url, String requestContentType)
protected String appendToBaseURL(String... segments)
protected String appendToURL(String... segments)
Copyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.