Public Member Functions | |
Object | sendRequest (XmlRpcRequest pRequest) throws XmlRpcException |
XmlRpcLiteHttpTransport (XmlRpcClient pClient) | |
Protected Member Functions | |
void | close () throws XmlRpcClientException |
InputStream | getInputStream () throws XmlRpcException |
boolean | isResponseGzipCompressed (XmlRpcStreamRequestConfig pConfig) |
boolean | isUsingByteArrayOutput (XmlRpcHttpClientConfig pConfig) |
Socket | newSocket (boolean pSSL, String pHostName, int pPort) throws UnknownHostException, IOException |
void | setRequestHeader (String pHeader, String pValue) |
void | writeRequest (ReqWriter pWriter) throws XmlRpcException, IOException, SAXException |
Private Member Functions | |
OutputStream | getOutputStream () throws XmlRpcException |
void | sendHeader (OutputStream pOut, String pKey, String pValue) throws IOException |
void | sendRequestHeaders (OutputStream pOut) throws IOException |
byte[] | toHTTPBytes (String pValue) throws UnsupportedEncodingException |
Private Attributes | |
XmlRpcHttpClientConfig | config |
final Map | headers = new HashMap() |
String | host |
String | hostname |
InputStream | input |
OutputStream | output |
int | port |
boolean | responseGzipCompressed = false |
Socket | socket |
boolean | ssl |
String | uri |
Static Private Attributes | |
static final String | userAgent = " (Lite HTTP Transport)" |
A "light" HTTP transport implementation.
Definition at line 49 of file XmlRpcLiteHttpTransport.java.
org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.XmlRpcLiteHttpTransport | ( | XmlRpcClient | pClient | ) | [inline] |
Creates a new instance.
pClient | The client controlling this instance. |
Definition at line 67 of file XmlRpcLiteHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.close | ( | ) | throws XmlRpcClientException [inline, protected, virtual] |
Closes the connection and ensures, that all resources are being released.
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 102 of file XmlRpcLiteHttpTransport.java.
InputStream org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.getInputStream | ( | ) | throws XmlRpcException [inline, protected, virtual] |
Returns the input stream, from which the response is being read.
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 211 of file XmlRpcLiteHttpTransport.java.
OutputStream org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.getOutputStream | ( | ) | throws XmlRpcException [inline, private] |
Closing the output stream would close the whole socket, which we don't want, because the don't want until the request is processed completely. A close will later occur within XmlRpcLiteHttpTransport#close().
Definition at line 134 of file XmlRpcLiteHttpTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.isResponseGzipCompressed | ( | XmlRpcStreamRequestConfig | pConfig | ) | [inline, protected, virtual] |
Returns, whether the response is gzip compressed.
pConfig | The clients configuration. |
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 207 of file XmlRpcLiteHttpTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.isUsingByteArrayOutput | ( | XmlRpcHttpClientConfig | pConfig | ) | [inline, protected] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 259 of file XmlRpcLiteHttpTransport.java.
Socket org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.newSocket | ( | boolean | pSSL, |
String | pHostName, | ||
int | pPort | ||
) | throws UnknownHostException, IOException [inline, protected] |
Reimplemented in org.apache.xmlrpc.client.XmlRpcLite14HttpTransport.
Definition at line 174 of file XmlRpcLiteHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.sendHeader | ( | OutputStream | pOut, |
String | pKey, | ||
String | pValue | ||
) | throws IOException [inline, private] |
Definition at line 185 of file XmlRpcLiteHttpTransport.java.
Object org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.sendRequest | ( | XmlRpcRequest | pRequest | ) | throws XmlRpcException [inline] |
Send an XML-RPC message. This method is called to send a message to the other party.
pRequest | The request being performed. |
XmlRpcException | Performing the request failed. |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 71 of file XmlRpcLiteHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.sendRequestHeaders | ( | OutputStream | pOut | ) | throws IOException [inline, private] |
Definition at line 189 of file XmlRpcLiteHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.setRequestHeader | ( | String | pHeader, |
String | pValue | ||
) | [inline, protected, virtual] |
Implements org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 85 of file XmlRpcLiteHttpTransport.java.
byte [] org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.toHTTPBytes | ( | String | pValue | ) | throws UnsupportedEncodingException [inline, private] |
Definition at line 181 of file XmlRpcLiteHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.writeRequest | ( | ReqWriter | pWriter | ) | throws XmlRpcException, IOException, SAXException [inline, protected, virtual] |
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 267 of file XmlRpcLiteHttpTransport.java.
Definition at line 61 of file XmlRpcLiteHttpTransport.java.
final Map org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.headers = new HashMap() [private] |
Definition at line 59 of file XmlRpcLiteHttpTransport.java.
String org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.host [private] |
Definition at line 53 of file XmlRpcLiteHttpTransport.java.
String org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.hostname [private] |
Definition at line 52 of file XmlRpcLiteHttpTransport.java.
InputStream org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.input [private] |
Definition at line 58 of file XmlRpcLiteHttpTransport.java.
OutputStream org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.output [private] |
Definition at line 57 of file XmlRpcLiteHttpTransport.java.
int org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.port [private] |
Definition at line 54 of file XmlRpcLiteHttpTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.responseGzipCompressed = false [private] |
Definition at line 60 of file XmlRpcLiteHttpTransport.java.
Socket org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.socket [private] |
Definition at line 56 of file XmlRpcLiteHttpTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.ssl [private] |
Definition at line 51 of file XmlRpcLiteHttpTransport.java.
String org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.uri [private] |
Definition at line 55 of file XmlRpcLiteHttpTransport.java.
final String org.apache.xmlrpc.client.XmlRpcLiteHttpTransport.userAgent = " (Lite HTTP Transport)" [static, private] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 50 of file XmlRpcLiteHttpTransport.java.