Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
org.apache.xmlrpc.client.XmlRpcLiteHttpTransport Class Reference
Inheritance diagram for org.apache.xmlrpc.client.XmlRpcLiteHttpTransport:
Inheritance graph
[legend]

List of all members.

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)"

Detailed Description

A "light" HTTP transport implementation.

Definition at line 49 of file XmlRpcLiteHttpTransport.java.


Constructor & Destructor Documentation

Creates a new instance.

Parameters:
pClientThe client controlling this instance.

Definition at line 67 of file XmlRpcLiteHttpTransport.java.


Member Function Documentation

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.

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.

Returns, whether the response is gzip compressed.

Parameters:
pConfigThe clients configuration.
Returns:
Whether the response stream is gzip compressed.

Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.

Definition at line 207 of file XmlRpcLiteHttpTransport.java.

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]
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.

Send an XML-RPC message. This method is called to send a message to the other party.

Parameters:
pRequestThe request being performed.
Returns:
Result object, if invoking the remote method was successfull.
Exceptions:
XmlRpcExceptionPerforming 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]
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]

Member Data Documentation

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.

Definition at line 53 of file XmlRpcLiteHttpTransport.java.

Definition at line 52 of file XmlRpcLiteHttpTransport.java.

Definition at line 58 of file XmlRpcLiteHttpTransport.java.

Definition at line 57 of file XmlRpcLiteHttpTransport.java.

Definition at line 54 of file XmlRpcLiteHttpTransport.java.

Definition at line 60 of file XmlRpcLiteHttpTransport.java.

Definition at line 56 of file XmlRpcLiteHttpTransport.java.

Definition at line 51 of file XmlRpcLiteHttpTransport.java.

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.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50