HttpClient.java
(C) Copyright IBM Corp. 2005, 2006
THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE
("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
You can obtain a current copy of the Common Public License from
http://www.opensource.org/licenses/cpl1.0.php
connect
public void connect()
throws IOException
convertToHexString
public static String convertToHexString(byte[] digest)
dequote
protected static String dequote(String str)
disconnect
public void disconnect()
finalize
public void finalize()
getBytes
protected static byte[] getBytes(String str,
String encoding)
getCipherSuite
public String getCipherSuite()
getHeaderField
public String getHeaderField(String name)
getHeaderField
public String getHeaderField(int index)
getHeaderFieldKey
public String getHeaderFieldKey(int index)
getInputStream
public InputStream getInputStream()
throws IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
getRequestMethod
public String getRequestMethod()
getRequestProperty
public String getRequestProperty(String key)
getResponseCode
public int getResponseCode()
throws IOException
getResponseMessage
public String getResponseMessage()
handleRsp
protected static void handleRsp(String authInfo,
AuthInfo prevAuthInfo)
throws IOException
handshakeCompleted
public void handshakeCompleted(HandshakeCompletedEvent event)
isConnected
public boolean isConnected()
Returns connected
parseHex
protected static byte[] parseHex(String hex)
setRequestMethod
public void setRequestMethod(String method)
setRequestProperty
public void setRequestProperty(String key,
String value)
streamFinished
public void streamFinished()
streamFinished
public void streamFinished(boolean keep)
updateAuthenticationInfo
protected void updateAuthenticationInfo(AuthInfo prevAuthInfo,
Challenge challenge)
throws NoSuchAlgorithmException
useHttp11
public void useHttp11(boolean bool)
usingProxy
public boolean usingProxy()