public class CallStatsHttpClient extends Object
| Constructor and Description |
|---|
CallStatsHttpClient()
Instantiates a new call stats http client.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl()
Gets the base url.
|
org.apache.http.client.HttpClient |
getHttpclient()
Gets the httpclient.
|
boolean |
isDisrupted() |
void |
sendAsyncHttpRequest(String url,
String httpMethodType,
String body,
CallStatsHttpResponseListener listener)
Send async http request.
|
org.apache.http.HttpResponse |
sendHttpRequest(String url,
String httpMethodType,
String body)
Send http request.
|
void |
setDisrupted(boolean isDisrupted) |
void |
setHttpclient(org.apache.http.client.HttpClient httpclient)
Sets the httpclient.
|
public CallStatsHttpClient()
public boolean isDisrupted()
public void setDisrupted(boolean isDisrupted)
public org.apache.http.client.HttpClient getHttpclient()
public void setHttpclient(org.apache.http.client.HttpClient httpclient)
httpclient - the new httpclientpublic String getBaseUrl()
public org.apache.http.HttpResponse sendHttpRequest(String url, String httpMethodType, String body) throws IOException
url - the urlhttpMethodType - the http method typebody - the bodyIOExceptionpublic void sendAsyncHttpRequest(String url, String httpMethodType, String body, CallStatsHttpResponseListener listener)
url - the urlhttpMethodType - the http method typebody - the bodylistener - the listenerCopyright © 2016. All rights reserved.