Method Summary |
|
public boolean | canRead() The stream is readable. |
public boolean | canWrite() |
public void | close() Close the connection. |
public Object | getAttribute(String name) Returns a header from the response returned from the HMUX server. |
public Iterator | getAttributeNames() Returns an iterator of the returned header names. |
public int | getAvailable() Returns the bytes still available. |
public String | getHost() Returns the stream's host. |
public int | getPort() Returns the stream's port. |
public boolean | isSSL() Set if this should be an SSL connection. |
public int | read(byte[] buf, int offset, int length) Read data from the connection. |
public void | removeAttribute(String name) Remove a header for the request. |
public void | setAttribute(String name, Object value) Sets a header for the request. |
public void | setHead(boolean isHead) Sets true if we're only interested in the head. |
public void | setMethod(String method) |
public void | setSSL(boolean isSSL) Set if this should be an SSL connection. |
public void | setSocketTimeout(long timeout) Sets the timeout. |
public void | write(byte[] buf, int offset, int length, boolean isEnd) Writes a buffer to the underlying stream. |