|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.xml.rpc.StandardHttpClient
totalcross.xml.rpc.CompressedHttpClient
public class CompressedHttpClient
| Field Summary |
|---|
| Fields inherited from class totalcross.xml.rpc.StandardHttpClient |
|---|
auth, host, hostname, htHeader, keepAlive, port, sb, socket, uri |
| Constructor Summary | |
|---|---|
CompressedHttpClient(String hostname,
int port,
String uri)
See the constructor for the StandardHttpClient |
|
| Method Summary | |
|---|---|
String |
execute(byte[] requestBody)
Executes a HTTP request to the connected server |
protected StringBuffer |
writeRequestHeader(int requestLength)
Writes the headers for a HTTP request, adding the deflate method as content-encoding. |
| Methods inherited from class totalcross.xml.rpc.StandardHttpClient |
|---|
checkResponse, closeConnection, parseHeader, readLine, readResponse, setBasicAuthentication, writeRequest |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompressedHttpClient(String hostname,
int port,
String uri)
throws XmlRpcException,
UnknownHostException
XmlRpcException
UnknownHostException| Method Detail |
|---|
public String execute(byte[] requestBody)
throws XmlRpcException
execute in class StandardHttpClientrequestBody - The contents of the HTTP request. Headers are added
appropriately by this method after the request is compressed
XmlRpcException - If the server returns a status code other than 200 OKprotected StringBuffer writeRequestHeader(int requestLength)
writeRequestHeader in class StandardHttpClient
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||