|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.net.HTTPClient
public class HTTPClient
This class supplies the static methods for the HTTPLoader. The actual HTTP/1.0 protocol is implemented in this class.
| Field Summary | |
|---|---|
static int |
readBufferSize
|
| Constructor Summary | |
|---|---|
HTTPClient()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
convert(java.lang.String in)
* This method converts a string to a POST param value encoding |
static java.lang.String |
read(java.io.InputStream reader,
int bytes,
java.io.OutputStream dataOut,
HTTPLoader loader)
* This methods reads only a certain number of bytes from the InputStream then returns. |
static java.lang.String |
read(java.io.InputStream reader,
java.io.OutputStream dataOut,
HTTPLoader loader)
* This method reads from the InputStream until there is nothing left to read. |
static void |
readHeader(java.io.InputStream in,
HTTPResponse rval,
HTTPLoader loader)
* This method reads from a InputStream the response header after a request was sent to the associated BufferedWriter. |
static HTTPResponse |
sendRequest(HTTPRequest request,
java.io.InputStream in,
java.io.BufferedWriter out,
java.io.OutputStream dataOut,
HTTPLoader loader)
|
static java.lang.String |
unconvert(java.lang.String in)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int readBufferSize
| Constructor Detail |
|---|
public HTTPClient()
| Method Detail |
|---|
public static HTTPResponse sendRequest(HTTPRequest request,
java.io.InputStream in,
java.io.BufferedWriter out,
java.io.OutputStream dataOut,
HTTPLoader loader)
throws java.io.IOException
java.io.IOException
public static void readHeader(java.io.InputStream in,
HTTPResponse rval,
HTTPLoader loader)
throws java.io.IOException
java.io.IOException
public static java.lang.String read(java.io.InputStream reader,
java.io.OutputStream dataOut,
HTTPLoader loader)
throws java.io.IOException
reader - This is the InputStream to read from.
java.io.IOException
public static java.lang.String read(java.io.InputStream reader,
int bytes,
java.io.OutputStream dataOut,
HTTPLoader loader)
throws java.io.IOException
reader - This is the InputStream to read from.bytes - This is the number of bytes (Characters) to read.
java.io.IOExceptionpublic static java.lang.String convert(java.lang.String in)
public static java.lang.String unconvert(java.lang.String in)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||