public class ApacheHttpClient extends java.lang.Object implements HttpClient<org.apache.http.HttpResponse>
HttpClient.Method
Constructor and Description |
---|
ApacheHttpClient() |
Modifier and Type | Method and Description |
---|---|
HttpClient<org.apache.http.HttpResponse> |
addHeader(java.lang.String name,
java.lang.String value) |
HttpClient<org.apache.http.HttpResponse> |
addPayload(java.lang.String contentType,
java.lang.String payload) |
void |
execute(RequestProcessor<org.apache.http.HttpResponse> processor) |
HttpClient<org.apache.http.HttpResponse> |
setBasicAuthCredentials(java.lang.String username,
java.lang.String password) |
HttpClient<org.apache.http.HttpResponse> |
setFollowRedirects(boolean redirects) |
HttpClient<org.apache.http.HttpResponse> |
setMethod(HttpClient.Method method) |
HttpClient<org.apache.http.HttpResponse> |
setRetryCount(int count) |
HttpClient<org.apache.http.HttpResponse> |
setTimeout(int timeoutMs) |
HttpClient<org.apache.http.HttpResponse> |
setUri(java.net.URI uri) |
public HttpClient<org.apache.http.HttpResponse> setUri(java.net.URI uri)
setUri
in interface HttpClient<org.apache.http.HttpResponse>
public HttpClient<org.apache.http.HttpResponse> setFollowRedirects(boolean redirects)
setFollowRedirects
in interface HttpClient<org.apache.http.HttpResponse>
public HttpClient<org.apache.http.HttpResponse> setBasicAuthCredentials(java.lang.String username, java.lang.String password)
setBasicAuthCredentials
in interface HttpClient<org.apache.http.HttpResponse>
public HttpClient<org.apache.http.HttpResponse> setTimeout(int timeoutMs)
setTimeout
in interface HttpClient<org.apache.http.HttpResponse>
public HttpClient<org.apache.http.HttpResponse> setMethod(HttpClient.Method method)
setMethod
in interface HttpClient<org.apache.http.HttpResponse>
public HttpClient<org.apache.http.HttpResponse> setRetryCount(int count)
setRetryCount
in interface HttpClient<org.apache.http.HttpResponse>
public HttpClient<org.apache.http.HttpResponse> addHeader(java.lang.String name, java.lang.String value)
addHeader
in interface HttpClient<org.apache.http.HttpResponse>
public HttpClient<org.apache.http.HttpResponse> addPayload(java.lang.String contentType, java.lang.String payload)
addPayload
in interface HttpClient<org.apache.http.HttpResponse>
public void execute(RequestProcessor<org.apache.http.HttpResponse> processor) throws java.lang.Exception
execute
in interface HttpClient<org.apache.http.HttpResponse>
java.lang.Exception