Package org.apache.xmlrpc.client
Class XmlRpcSun14HttpTransport
- java.lang.Object
-
- org.apache.xmlrpc.client.XmlRpcTransportImpl
-
- org.apache.xmlrpc.client.XmlRpcStreamTransport
-
- org.apache.xmlrpc.client.XmlRpcHttpTransport
-
- org.apache.xmlrpc.client.XmlRpcSunHttpTransport
-
- org.apache.xmlrpc.client.XmlRpcSun14HttpTransport
-
- All Implemented Interfaces:
XmlRpcTransport
- Direct Known Subclasses:
XmlRpcSun15HttpTransport
public class XmlRpcSun14HttpTransport extends XmlRpcSunHttpTransport
Default implementation of an HTTP transport in Java 1.4, based on theHttpURLConnectionclass. Adds support for theSSLSocketFactory.
-
-
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 inherited from class org.apache.xmlrpc.client.XmlRpcHttpTransport
USER_AGENT
-
-
Constructor Summary
Constructors Constructor Description XmlRpcSun14HttpTransport(XmlRpcClient pClient)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLSocketFactorygetSSLSocketFactory()Returns the SSLSocketFactory used to create secure sockets.protected URLConnectionnewURLConnection(URL pURL)voidsetSSLSocketFactory(SSLSocketFactory pSocketFactory)Sets the SSLSocketFactory used to create secure sockets.-
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, initHttpHeaders, 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
-
XmlRpcSun14HttpTransport
public XmlRpcSun14HttpTransport(XmlRpcClient pClient)
Creates a new instance.- Parameters:
pClient- The client controlling this instance.
-
-
Method Detail
-
setSSLSocketFactory
public void setSSLSocketFactory(SSLSocketFactory pSocketFactory)
Sets the SSLSocketFactory used to create secure sockets.- Parameters:
pSocketFactory- The SSLSocketFactory to use.
-
getSSLSocketFactory
public SSLSocketFactory getSSLSocketFactory()
Returns the SSLSocketFactory used to create secure sockets.
-
newURLConnection
protected URLConnection newURLConnection(URL pURL) throws IOException
- Overrides:
newURLConnectionin classXmlRpcSunHttpTransport- Throws:
IOException
-
-