Class HttpClient
java.lang.Object
org.sblim.wbem.http.HttpClient
- All Implemented Interfaces:
EventListener, HandshakeCompletedListener
-
Constructor Summary
ConstructorsConstructorDescriptionHttpClient(URI url, HttpClientPool clientPool, AuthorizationHandler auth_handler) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()static StringconvertToHexString(byte[] digest) protected static Stringvoidvoidfinalize()protected AuthInfogetAuthentication(boolean proxy, AuthInfo prevAuthInfo, String authenticate) static HttpClientgetClient(URI url, HttpClientPool clientPool, AuthorizationHandler auth_handler) getHeaderField(int index) getHeaderField(String name) getHeaderFieldKey(int index) getRequestProperty(String key) intprotected static voidvoidbooleanReturns connectedprotected static byte[]voidreset()voidsetRequestMethod(String method) voidsetRequestProperty(String key, String value) voidvoidstreamFinished(boolean keep) voiduseHttp11(boolean bool) boolean
-
Constructor Details
-
HttpClient
-
-
Method Details
-
convertToHexString
-
getClient
public static HttpClient getClient(URI url, HttpClientPool clientPool, AuthorizationHandler auth_handler) -
dequote
-
handleRsp
- Throws:
IOException
-
parseHex
-
connect
- Throws:
IOException
-
disconnect
public void disconnect() -
finalize
-
getCipherSuite
-
getHeaderField
-
getHeaderField
-
getHeaderFieldKey
-
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
getRequestMethod
-
getRequestProperty
-
getResponseCode
- Throws:
IOException
-
getResponseMessage
-
handshakeCompleted
- Specified by:
handshakeCompletedin interfaceHandshakeCompletedListener
-
reset
public void reset() -
setRequestMethod
-
setRequestProperty
-
streamFinished
public void streamFinished() -
streamFinished
public void streamFinished(boolean keep) -
useHttp11
public void useHttp11(boolean bool) -
usingProxy
public boolean usingProxy() -
getAuthentication
protected AuthInfo getAuthentication(boolean proxy, AuthInfo prevAuthInfo, String authenticate) throws HttpParseException, NoSuchAlgorithmException -
isConnected
public boolean isConnected()Returns connected- Returns:
- The value of connected.
-