public abstract class AbstractClient extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACCEPT |
protected static String |
APPLICATION_JSON |
protected static String |
AUTH |
protected URI |
baseUrl |
protected org.apache.http.impl.client.CloseableHttpClient |
client |
protected static String |
CONTENT |
protected String |
serviceName |
protected static String |
TEXT_PLAIN |
protected static String |
TEXT_XML |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClient(String serviceName) |
protected |
AbstractClient(String serviceName,
String url) |
protected |
AbstractClient(String serviceName,
String url,
org.apache.http.impl.client.CloseableHttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getAuthToken() |
void |
setAuthToken(String authToken) |
protected static final String ACCEPT
protected static final String CONTENT
protected static final String AUTH
protected static final String TEXT_XML
protected static final String TEXT_PLAIN
protected static final String APPLICATION_JSON
protected final String serviceName
protected URI baseUrl
protected org.apache.http.impl.client.CloseableHttpClient client
protected AbstractClient(String serviceName)
public String getAuthToken()
public void setAuthToken(String authToken)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015. All Rights Reserved.