Public Member Functions | |
Object | sendRequest (XmlRpcRequest pRequest) throws XmlRpcException |
XmlRpcSunHttpTransport (XmlRpcClient pClient) | |
Protected Member Functions | |
void | close () throws XmlRpcClientException |
InputStream | getInputStream () throws XmlRpcException |
URLConnection | getURLConnection () |
boolean | isResponseGzipCompressed (XmlRpcStreamRequestConfig pConfig) |
URLConnection | newURLConnection (URL pURL) throws IOException |
void | setRequestHeader (String pHeader, String pValue) |
void | writeRequest (ReqWriter pWriter) throws IOException, XmlRpcException, SAXException |
Private Attributes | |
URLConnection | conn |
Static Private Attributes | |
static final String | userAgent = " (Sun HTTP Transport)" |
Default implementation of an HTTP transport, based on the java.net.HttpURLConnection class.
Definition at line 37 of file XmlRpcSunHttpTransport.java.
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.XmlRpcSunHttpTransport | ( | XmlRpcClient | pClient | ) | [inline] |
Creates a new instance.
pClient | The client controlling this instance. |
Definition at line 44 of file XmlRpcSunHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcSunHttpTransport.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 76 of file XmlRpcSunHttpTransport.java.
InputStream org.apache.xmlrpc.client.XmlRpcSunHttpTransport.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 87 of file XmlRpcSunHttpTransport.java.
URLConnection org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getURLConnection | ( | ) | [inline, protected] |
For use by subclasses.
Definition at line 55 of file XmlRpcSunHttpTransport.java.
boolean org.apache.xmlrpc.client.XmlRpcSunHttpTransport.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 83 of file XmlRpcSunHttpTransport.java.
URLConnection org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newURLConnection | ( | URL | pURL | ) | throws IOException [inline, protected] |
Reimplemented in org.apache.xmlrpc.client.XmlRpcSun15HttpTransport, and org.apache.xmlrpc.client.XmlRpcSun14HttpTransport.
Definition at line 48 of file XmlRpcSunHttpTransport.java.
Object org.apache.xmlrpc.client.XmlRpcSunHttpTransport.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 59 of file XmlRpcSunHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcSunHttpTransport.setRequestHeader | ( | String | pHeader, |
String | pValue | ||
) | [inline, protected, virtual] |
Implements org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 72 of file XmlRpcSunHttpTransport.java.
void org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest | ( | ReqWriter | pWriter | ) | throws IOException, XmlRpcException, SAXException [inline, protected, virtual] |
Implements org.apache.xmlrpc.client.XmlRpcStreamTransport.
Definition at line 103 of file XmlRpcSunHttpTransport.java.
URLConnection org.apache.xmlrpc.client.XmlRpcSunHttpTransport.conn [private] |
Definition at line 39 of file XmlRpcSunHttpTransport.java.
final String org.apache.xmlrpc.client.XmlRpcSunHttpTransport.userAgent = " (Sun HTTP Transport)" [static, private] |
Reimplemented from org.apache.xmlrpc.client.XmlRpcHttpTransport.
Definition at line 38 of file XmlRpcSunHttpTransport.java.