public class HTTPXClient
extends java.lang.Object
Constructor and Description |
---|
HTTPXClient(java.net.URL oURL) |
Modifier and Type | Method and Description |
---|---|
HTTPXClient |
addReqHeader(java.lang.String sKey,
java.lang.String sValue) |
HTTPXClient |
connect() |
void |
disconnect() |
static java.lang.Exception |
e(java.lang.String s) |
byte[] |
getBytes() |
byte[] |
getChunkedBytes(boolean bLog) |
java.lang.String |
getHeaderField(int n) |
java.lang.String |
getHeaderField(java.lang.String sKey) |
java.lang.String |
getHeaderFieldKey(int n) |
java.io.InputStream |
getInputStream() |
java.lang.String |
getRequestMethod() |
int |
getResponseCode() |
java.lang.String |
getResponseMessage() |
java.net.URL |
getURL() |
void |
log(java.lang.String sMsg) |
HTTPXClient |
setPutBuffer(byte[] oPutBuffer,
java.lang.String sContentType) |
HTTPXClient |
setRequestMethod(java.lang.String sMethod) |
boolean |
usingProxy() |
HTTPXClient |
verbose(boolean bVerbose) |
public static java.lang.Exception e(java.lang.String s)
public void log(java.lang.String sMsg)
public java.net.URL getURL()
public HTTPXClient addReqHeader(java.lang.String sKey, java.lang.String sValue)
public HTTPXClient setRequestMethod(java.lang.String sMethod)
public java.lang.String getRequestMethod()
public HTTPXClient verbose(boolean bVerbose)
public void disconnect()
public int getResponseCode() throws java.lang.Exception
java.lang.Exception
public boolean usingProxy()
public HTTPXClient connect() throws java.io.IOException, java.lang.Exception
java.io.IOException
java.lang.Exception
public HTTPXClient setPutBuffer(byte[] oPutBuffer, java.lang.String sContentType) throws java.lang.Exception
java.lang.Exception
public java.lang.String getHeaderFieldKey(int n)
public java.lang.String getHeaderField(int n)
public java.lang.String getHeaderField(java.lang.String sKey)
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getResponseMessage() throws java.lang.Exception
java.lang.Exception
public byte[] getBytes() throws java.io.IOException
java.io.IOException
public byte[] getChunkedBytes(boolean bLog) throws java.io.IOException, java.lang.Exception
java.io.IOException
java.lang.Exception