Skip to content

ws1-network/com.airwatch.gateway.clients/AWHttpClient/executeRequest

executeRequest

open fun <T> executeRequest(target: HttpHost, request: HttpRequest, responseHandler: ResponseHandler<? extends T>, context: HttpContext): T
T, T

Executes the request against the given target, handling integrated auth and tunnelling.

Parameters

Name Description
target The HttpHost to execute against. Non-null.
request The HttpRequest to execute. Non-null.
responseHandler The ResponseHandler that processes the response. Non-null.
context The HttpContext for the request. Nullable.
<T> The type produced by the response handler.

Parameters

Name Description
target The HttpHost to execute against. Non-null.
request The HttpRequest to execute. Non-null.
responseHandler The ResponseHandler that processes the response. Non-null.
<T> The type produced by the response handler.

Parameters

Name Description
request The HttpUriRequest to execute. Non-null.
responseHandler The ResponseHandler that processes the response. Non-null.
context The HttpContext for the request. Nullable.
<T> The type produced by the response handler.

Parameters

Name Description
request The HttpUriRequest to execute. Non-null.
responseHandler The ResponseHandler that processes the response. Non-null.
<T> The type produced by the response handler.

Parameters

Name Description
request The HttpUriRequest to execute. Non-null.

Parameters

Name Description
request The HttpUriRequest to execute. Non-null.
context The HttpContext for the request. Nullable.

Parameters

Name Description
target The HttpHost to execute against. Non-null.
request The HttpRequest to execute. Non-null.

Parameters

Name Description
target The HttpHost to execute against. Non-null.
request The HttpRequest to execute. Non-null.
context The HttpContext for the request. Nullable.

Return

The non-null result produced by the response handler.

Return

The non-null result produced by the response handler.

Return

The non-null result produced by the response handler.

Return

The non-null result produced by the response handler.

Return

The non-null HttpResponse.

Return

The non-null HttpResponse.

Return

The non-null HttpResponse.

Return

The non-null HttpResponse.

Throws

Exception Condition
java.io.IOException If the request could not be executed.

open fun <T> executeRequest(target: HttpHost, request: HttpRequest, responseHandler: ResponseHandler<? extends T>): T

Executes the request against the given target, handling integrated auth and tunnelling.

Throws

Exception Condition
java.io.IOException If the request could not be executed.

open fun <T> executeRequest(request: HttpUriRequest, responseHandler: ResponseHandler<? extends T>, context: HttpContext): T

Executes the request, handling integrated auth and tunnelling.

Throws

Exception Condition
java.io.IOException If the request could not be executed.

open fun <T> executeRequest(request: HttpUriRequest, responseHandler: ResponseHandler<? extends T>): T

Executes the request, handling integrated auth and tunnelling.

Throws

Exception Condition
java.io.IOException If the request could not be executed.

open fun executeRequest(request: HttpUriRequest): HttpResponse

Executes the request, handling integrated auth and tunnelling.

Throws

Exception Condition
java.io.IOException If the request could not be executed.

open fun executeRequest(request: HttpUriRequest, context: HttpContext): HttpResponse

Executes the request, handling integrated auth and tunnelling.

Throws

Exception Condition
java.io.IOException If the request could not be executed.

open fun executeRequest(target: HttpHost, request: HttpRequest): HttpResponse

Executes the request against the given target, handling integrated auth and tunnelling.

Throws

Exception Condition
java.io.IOException If the request could not be executed.

open fun executeRequest(target: HttpHost, request: HttpRequest, context: HttpContext): HttpResponse

Executes the request against the given target, handling integrated auth and tunnelling.

Throws

Exception Condition
java.io.IOException If the request could not be executed.