Package org.apache.xmlrpc.client
Class XmlRpcSun15HttpTransport
- java.lang.Object
-
- All Implemented Interfaces:
XmlRpcTransport
public class XmlRpcSun15HttpTransport extends XmlRpcSun14HttpTransport
Default implementation of an HTTP transport in Java 1.4, based on theHttpURLConnection
class. Adds support for theProxy
class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport
XmlRpcHttpTransport.ByteArrayReqWriter
-
Nested classes/interfaces inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport
XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.Proxy
proxy
-
Fields inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport
USER_AGENT
-
-
Constructor Summary
Constructors Constructor Description XmlRpcSun15HttpTransport(XmlRpcClient pClient)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Proxy
getProxy()
Returns the proxy to use.protected void
initHttpHeaders(XmlRpcRequest pRequest)
protected java.net.URLConnection
newURLConnection(java.net.URL pURL)
void
setProxy(java.net.Proxy pProxy)
Sets the proxy to use.-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcSun14HttpTransport
getSSLSocketFactory, setSSLSocketFactory
-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcSunHttpTransport
close, getInputStream, getURLConnection, isResponseGzipCompressed, sendRequest, setRequestHeader, writeRequest
-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport
getUserAgent, isUsingByteArrayOutput, newReqWriter, setCompressionHeaders, setContentLength, setCredentials
-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport
isCompressingRequest, newXMLReader, readResponse
-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportImpl
getClient
-
-
-
-
Constructor Detail
-
XmlRpcSun15HttpTransport
public XmlRpcSun15HttpTransport(XmlRpcClient pClient)
Creates a new instance.- Parameters:
pClient
- The client controlling this instance.
-
-
Method Detail
-
setProxy
public void setProxy(java.net.Proxy pProxy)
Sets the proxy to use.
-
getProxy
public java.net.Proxy getProxy()
Returns the proxy to use.
-
initHttpHeaders
protected void initHttpHeaders(XmlRpcRequest pRequest) throws XmlRpcClientException
- Overrides:
initHttpHeaders
in classXmlRpcHttpTransport
- Throws:
XmlRpcClientException
-
newURLConnection
protected java.net.URLConnection newURLConnection(java.net.URL pURL) throws java.io.IOException
- Overrides:
newURLConnection
in classXmlRpcSun14HttpTransport
- Throws:
java.io.IOException
-
-