public class HttpClient extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HttpClient.Response |
| Constructor and Description |
|---|
HttpClient(String endpoint,
boolean ssl,
be.personify.util.http.HttpAuthenticationType authenticationtype,
String username,
String password)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
HttpClient.Response |
request(String uri,
be.personify.util.http.HttpMethod method)
Request
|
HttpClient.Response |
request(String uri,
be.personify.util.http.HttpMethod method,
int connectTimeout,
int readTimeout)
perform the request
|
HttpClient.Response |
request(String uri,
be.personify.util.http.HttpMethod method,
String body,
int connectTimeout,
int readTimeout)
Request
|
public HttpClient(String endpoint, boolean ssl, be.personify.util.http.HttpAuthenticationType authenticationtype, String username, String password)
endpoint - the endpointssl - use ssl or notauthenticationtype - the authenticationtype to useusername - the usernamepassword - the passwordpublic HttpClient.Response request(String uri, be.personify.util.http.HttpMethod method)
uri - the urimethod - the methodpublic HttpClient.Response request(String uri, be.personify.util.http.HttpMethod method, int connectTimeout, int readTimeout)
uri - the urimethod - the methodconnectTimeout - the connection timeoutreadTimeout - the read timeoutpublic HttpClient.Response request(String uri, be.personify.util.http.HttpMethod method, String body, int connectTimeout, int readTimeout)
uri - the urimethod - the methodbody - the bodyconnectTimeout - the connection timeoutreadTimeout - the read timeoutCopyright © 2019–2020 mogo. All rights reserved.