org.sblim.cimclient.internal.http

Class HttpUrlConnection

public class HttpUrlConnection extends HttpURLConnection

Class HttpUrlConnection encapsulates a http connection
Field Summary
protected URIiUrl
Constructor Summary
HttpUrlConnection(URI pUri, HttpClientPool pHttpClientPool, AuthorizationHandler pAuthHandler)
Ctor.
Method Summary
voidclose()
Closes the client pool
HttpClientgetHttpClient()
Returns the http client
voidreset()
Resets the http client
voiduseHttp11(boolean pUse11)
Enables/Disables the use of http 1.1

Field Detail

iUrl

protected URI iUrl

Constructor Detail

HttpUrlConnection

public HttpUrlConnection(URI pUri, HttpClientPool pHttpClientPool, AuthorizationHandler pAuthHandler)
Ctor.

Parameters: pUri The host URI pHttpClientPool The client pool pAuthHandler The authentication handler

Method Detail

close

public void close()
Closes the client pool

getHttpClient

public HttpClient getHttpClient()
Returns the http client

Returns: The http client

reset

public void reset()
Resets the http client

useHttp11

public void useHttp11(boolean pUse11)
Enables/Disables the use of http 1.1

Parameters: pUse11 If true http 1.1 is enabled.

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.