Class XmlRpcSun15HttpTransport
- All Implemented Interfaces:
XmlRpcTransport
Default implementation of an HTTP transport in Java 1.4, based on the
HttpURLConnection class. Adds support for the
Proxy class.-
Nested Class Summary
Nested classes/interfaces inherited from class XmlRpcHttpTransport
XmlRpcHttpTransport.ByteArrayReqWriterNested classes/interfaces inherited from class XmlRpcStreamTransport
XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl -
Field Summary
FieldsFields inherited from class XmlRpcHttpTransport
USER_AGENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProxy()Returns the proxy to use.protected voidinitHttpHeaders(XmlRpcRequest pRequest) protected URLConnectionnewURLConnection(URL pURL) voidSets the proxy to use.Methods inherited from class XmlRpcSun14HttpTransport
getSSLSocketFactory, setSSLSocketFactoryMethods inherited from class XmlRpcSunHttpTransport
close, getInputStream, getURLConnection, isResponseGzipCompressed, sendRequest, setRequestHeader, writeRequestMethods inherited from class XmlRpcHttpTransport
getUserAgent, isUsingByteArrayOutput, newReqWriter, setCompressionHeaders, setContentLength, setCredentialsMethods inherited from class XmlRpcStreamTransport
isCompressingRequest, newXMLReader, readResponseMethods inherited from class XmlRpcTransportImpl
getClient
-
Field Details
-
proxy
-
-
Constructor Details
-
XmlRpcSun15HttpTransport
Creates a new instance.- Parameters:
pClient- The client controlling this instance.
-
-
Method Details
-
setProxy
Sets the proxy to use. -
getProxy
Returns the proxy to use. -
initHttpHeaders
- Overrides:
initHttpHeadersin classXmlRpcHttpTransport- Throws:
XmlRpcClientException
-
newURLConnection
- Overrides:
newURLConnectionin classXmlRpcSun14HttpTransport- Throws:
IOException
-