public interface TrustedHttpClient
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TrustedHttpClient.RequestRunner<A>
Request runner encapsulating request resource management.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.http.HttpResponse response)
Closes this response.
|
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest)
Executes an HttpRequest using a secure, but not necessarily encrypted, http connection.
|
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest,
int connectionTimeout,
int socketTimeout)
Executes an HttpRequest using a secure, but not necessarily encrypted, http connection, waiting for the specified
timeouts.
|
<T> T |
execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest,
org.apache.http.client.ResponseHandler<T> responseHandler)
Executes an HttpRequest using a secure, but not necessarily encrypted, http connection.
|
<T> T |
execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest,
org.apache.http.client.ResponseHandler<T> responseHandler,
int connectionTimeout,
int socketTimeout)
Executes an HttpRequest using a secure, but not necessarily encrypted, http connection, waiting for the specified
timeouts.
|
<A> Function<Function<org.apache.http.HttpResponse,A>,Either<Exception,A>> |
run(org.apache.http.client.methods.HttpUriRequest httpUriRequest)
Deprecated.
|
<A> TrustedHttpClient.RequestRunner<A> |
runner(org.apache.http.client.methods.HttpUriRequest req)
Create a request runner to execute the request.
|
<A> Function<Function<org.apache.http.HttpResponse,A>,Either<Exception,A>> run(org.apache.http.client.methods.HttpUriRequest httpUriRequest)
runner(org.apache.http.client.methods.HttpUriRequest)httpUriRequest - The http requestHttpUriRequest -> (HttpResponse -> A) -> Either Exception A<A> TrustedHttpClient.RequestRunner<A> runner(org.apache.http.client.methods.HttpUriRequest req)
This method replaces run(org.apache.http.client.methods.HttpUriRequest) to avoid
type annotation mess. To actually run the request call the runners
run
method.
org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest)
throws TrustedHttpClientException
httpUriRequest - The http requestTrustedHttpClientExceptionorg.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest,
int connectionTimeout,
int socketTimeout)
throws TrustedHttpClientException
httpUriRequest - The http requestconnectionTimeout - the wait time in milliseconds at which a connection attempt will throwsocketTimeout - the maximum time in milliseconds allowed between packets before this method will throwTrustedHttpClientException<T> T execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest,
org.apache.http.client.ResponseHandler<T> responseHandler)
throws TrustedHttpClientException
httpUriRequest - The http requestTrustedHttpClientException<T> T execute(org.apache.http.client.methods.HttpUriRequest httpUriRequest,
org.apache.http.client.ResponseHandler<T> responseHandler,
int connectionTimeout,
int socketTimeout)
throws TrustedHttpClientException
httpUriRequest - The http requestresponseHandler - the response handlerconnectionTimeout - the wait time in milliseconds at which a connection attempt will throwsocketTimeout - the maximum time in milliseconds allowed between packets before this method will throwTrustedHttpClientExceptionvoid close(org.apache.http.HttpResponse response)
response - The response to closeCopyright © 2009–2021 Opencast Project. All rights reserved.