public class UtilHttpClient extends Object
Constructor and Description |
---|
UtilHttpClient(org.apache.http.HttpHost host,
org.apache.http.Header[] headers,
JavaStoreSecurity securityStores) |
Modifier and Type | Method and Description |
---|---|
ISettingsMap |
get() |
boolean |
isSslEnabled() |
ISettingsMap |
post(String form) |
ISettingsMap |
put(String body) |
void |
setHeaders(org.apache.http.Header[] headers) |
void |
setHost(org.apache.http.HttpHost host)
Set host
|
void |
setRequest(String request)
Set request
|
void |
setSecurityStores(JavaStoreSecurity securityStores) |
UtilHttpClient |
timeout(int timeoutMs)
Timeout setter
|
public UtilHttpClient(org.apache.http.HttpHost host, org.apache.http.Header[] headers, JavaStoreSecurity securityStores)
public boolean isSslEnabled()
public UtilHttpClient timeout(int timeoutMs)
timeoutMs
- the connection and request timeout in millisecondspublic void setHeaders(org.apache.http.Header[] headers)
public void setHost(org.apache.http.HttpHost host)
host
- public void setRequest(String request)
request
- public void setSecurityStores(JavaStoreSecurity securityStores)
public ISettingsMap get() throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public ISettingsMap post(String form) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public ISettingsMap put(String body) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
Copyright © 2014–2022. All rights reserved.