public class ServiceClient extends Object
Created by Jeff Gaynor
on 5/21/12 at 1:43 PM
Modifier and Type | Field and Description |
---|---|
protected Pool<org.apache.http.client.HttpClient> |
clientPool |
static String |
ENCODING |
Constructor and Description |
---|
ServiceClient(URI address)
Basic default service client that uses the java keystore only.
|
ServiceClient(URI address,
SSLConfiguration sslConfiguration) |
Modifier and Type | Method and Description |
---|---|
static String |
convertToStringRequest(String host,
Map m) |
static String |
convertToStringRequest(String host,
String[][] args) |
static String |
decode(String x) |
protected String |
doRequest(org.apache.http.client.methods.HttpRequestBase httpRequestBase) |
protected String |
doRequest(org.apache.http.client.methods.HttpRequestBase httpRequestBase,
String id,
String secret)
This will set the basic authorization in the headers for the request.
|
static String |
encode(String x) |
String |
getRawResponse(Map m) |
String |
getRawResponse(Map m,
String id,
String secret) |
String |
getRawResponse(String requestString) |
String |
getRawResponse(String requestString,
String id,
String secret) |
URI |
host(URI... x) |
boolean |
isVerbose() |
void |
setVerbose(boolean verbose) |
protected Pool<org.apache.http.client.HttpClient> clientPool
public static String ENCODING
public ServiceClient(URI address, SSLConfiguration sslConfiguration)
public ServiceClient(URI address)
address
- public boolean isVerbose()
public void setVerbose(boolean verbose)
public static String encode(String x) throws UnsupportedEncodingException
UnsupportedEncodingException
public static String decode(String x) throws UnsupportedEncodingException
UnsupportedEncodingException
protected String doRequest(org.apache.http.client.methods.HttpRequestBase httpRequestBase, String id, String secret)
httpRequestBase
- id
- secret
- protected String doRequest(org.apache.http.client.methods.HttpRequestBase httpRequestBase)
Copyright © 2019. All Rights Reserved.