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 theHttpURLConnection
class. 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 Modifier and Type Field Description private javax.net.ssl.SSLSocketFactory
sslSocketFactory
-
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 javax.net.ssl.SSLSocketFactory
getSSLSocketFactory()
Returns the SSLSocketFactory used to create secure sockets.protected java.net.URLConnection
newURLConnection(java.net.URL pURL)
void
setSSLSocketFactory(javax.net.ssl.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(javax.net.ssl.SSLSocketFactory pSocketFactory)
Sets the SSLSocketFactory used to create secure sockets.- Parameters:
pSocketFactory
- The SSLSocketFactory to use.
-
getSSLSocketFactory
public javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
Returns the SSLSocketFactory used to create secure sockets.
-
newURLConnection
protected java.net.URLConnection newURLConnection(java.net.URL pURL) throws java.io.IOException
- Overrides:
newURLConnection
in classXmlRpcSunHttpTransport
- Throws:
java.io.IOException
-
-