Skip to content

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

AWHttpClient

@Deprecated

~~open~~ ~~class~~ ~~AWHttpClient~~

Wrapper over org.apache.http.impl.client.DefaultHttpClient that provides IA and tunnelling features. Use AWUrlConnection.

Constructors

Name Description
AWHttpClient open fun AWHttpClient(context: Context)
Creates a client that tunnels traffic and responds to integrated auth challenges using a user with no domain and password.
AWHttpClient open fun AWHttpClient(context: Context, useDomainWithUserCredentials: Boolean)
Creates a client that tunnels traffic and responds to integrated auth challenges using a user and password.

Functions

Name Summary
executeRequest open fun executeRequest(request: HttpUriRequest): HttpResponse
open fun executeRequest(request: HttpUriRequest, context: HttpContext): HttpResponse
open fun <T> executeRequest(request: HttpUriRequest, responseHandler: ResponseHandler<? extends T>): T
open fun <T> executeRequest(request: HttpUriRequest, responseHandler: ResponseHandler<? extends T>, context: HttpContext): T
Executes the request, handling integrated auth and tunnelling.
open fun executeRequest(target: HttpHost, request: HttpRequest): HttpResponse
open fun executeRequest(target: HttpHost, request: HttpRequest, context: HttpContext): HttpResponse
open fun <T> executeRequest(target: HttpHost, request: HttpRequest, responseHandler: ResponseHandler<? extends T>): T
open fun <T> executeRequest(target: HttpHost, request: HttpRequest, responseHandler: ResponseHandler<? extends T>, context: HttpContext): T
Executes the request against the given target, handling integrated auth and tunnelling.