public class HttpClientConfigured extends Object
| Constructor and Description |
|---|
HttpClientConfigured(String username,
String password,
String url) |
HttpClientConfigured(String username,
String password,
String url,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(org.apache.http.HttpResponse response) |
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest method) |
org.apache.http.client.protocol.HttpClientContext |
getContext() |
org.apache.http.client.HttpClient |
getHttpClient() |
String |
getPassword() |
String |
getUsername() |
static void |
setAllowSelfSignedCerts(boolean assc) |
void |
setContext(org.apache.http.client.protocol.HttpClientContext context) |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
static void |
setMaxResponseTime(int aMaxResponseTime) |
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest method)
throws IOException
IOExceptionpublic void close()
public void close(org.apache.http.HttpResponse response)
public org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
httpClient - the httpClient to setpublic org.apache.http.client.protocol.HttpClientContext getContext()
public void setContext(org.apache.http.client.protocol.HttpClientContext context)
context - the context to setpublic static void setMaxResponseTime(int aMaxResponseTime)
aMaxResponseTime - the maxResponseTime to setpublic static void setAllowSelfSignedCerts(boolean assc)
assc - the allowSelfSignedCerts to setpublic String getUsername()
public String getPassword()
Copyright © 2020. All rights reserved.