org.sblim.wbem.http
Class HttpClient
java.lang.Object
org.sblim.wbem.http.HttpClient
- All Implemented Interfaces:
- java.util.EventListener, javax.net.ssl.HandshakeCompletedListener
- public class HttpClient
- extends java.lang.Object
- implements javax.net.ssl.HandshakeCompletedListener
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClient
public HttpClient(java.net.URI url,
HttpClientPool clientPool,
AuthorizationHandler auth_handler)
convertToHexString
public static java.lang.String convertToHexString(byte[] digest)
getClient
public static HttpClient getClient(java.net.URI url,
HttpClientPool clientPool,
AuthorizationHandler auth_handler)
dequote
protected static java.lang.String dequote(java.lang.String str)
handleRsp
protected static void handleRsp(java.lang.String authInfo,
AuthInfo prevAuthInfo)
throws java.io.IOException
- Throws:
java.io.IOException
parseHex
protected static byte[] parseHex(java.lang.String hex)
connect
public void connect()
throws java.io.IOException
- Throws:
java.io.IOException
disconnect
public void disconnect()
finalize
public void finalize()
getCipherSuite
public java.lang.String getCipherSuite()
getHeaderField
public java.lang.String getHeaderField(int index)
getHeaderField
public java.lang.String getHeaderField(java.lang.String name)
getHeaderFieldKey
public java.lang.String getHeaderFieldKey(int index)
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getRequestMethod
public java.lang.String getRequestMethod()
getRequestProperty
public java.lang.String getRequestProperty(java.lang.String key)
getResponseCode
public int getResponseCode()
throws java.io.IOException
- Throws:
java.io.IOException
getResponseMessage
public java.lang.String getResponseMessage()
handshakeCompleted
public void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent event)
- Specified by:
handshakeCompleted
in interface javax.net.ssl.HandshakeCompletedListener
reset
public void reset()
setRequestMethod
public void setRequestMethod(java.lang.String method)
setRequestProperty
public void setRequestProperty(java.lang.String key,
java.lang.String value)
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,
java.lang.String authenticate)
throws HttpParseException,
java.security.NoSuchAlgorithmException
- Throws:
HttpParseException
java.security.NoSuchAlgorithmException
isConnected
public boolean isConnected()
- Returns connected
- Returns:
- The value of connected.
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.