Class XmlRpcSun15HttpTransportFactory
java.lang.Object
org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl
org.apache.xmlrpc.client.XmlRpcSun14HttpTransportFactory
org.apache.xmlrpc.client.XmlRpcSun15HttpTransportFactory
- All Implemented Interfaces:
XmlRpcTransportFactory
Default implementation of an HTTP transport in Java 1.5, based on the
HttpURLConnection class.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new factory, which creates transports for the given client. -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance ofXmlRpcTransport.voidSets the proxy to use.voidSets the proxy to use.Methods inherited from class XmlRpcSun14HttpTransportFactory
getSSLSocketFactory, setSSLSocketFactoryMethods inherited from class XmlRpcTransportFactoryImpl
getClient
-
Field Details
-
proxy
-
-
Constructor Details
-
XmlRpcSun15HttpTransportFactory
Creates a new factory, which creates transports for the given client.- Parameters:
pClient- The client, which is operating the factory.
-
-
Method Details
-
setProxy
Sets the proxy to use.- Parameters:
proxyHost- The proxy hostname.proxyPort- The proxy port number.- Throws:
IllegalArgumentException- if the proxyHost parameter is null or if the proxyPort parameter is outside the range of valid port values.
-
setProxy
-
getTransport
Description copied from interface:XmlRpcTransportFactoryReturns an instance ofXmlRpcTransport. This may be a singleton, but the caller should not depend on that: A new instance may as well be created for any request.- Specified by:
getTransportin interfaceXmlRpcTransportFactory- Overrides:
getTransportin classXmlRpcSun14HttpTransportFactory- Returns:
- The configured transport.
-