public class XmlRpcSunHttpTransport extends XmlRpcHttpTransport
HttpURLConnection class.XmlRpcHttpTransport.ByteArrayReqWriterXmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImplUSER_AGENT| Constructor and Description |
|---|
XmlRpcSunHttpTransport(XmlRpcClient pClient)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
Closes the connection and ensures, that all resources are being
released.
|
protected java.io.InputStream |
getInputStream()
Returns the input stream, from which the response is
being read.
|
protected java.net.URLConnection |
getURLConnection()
For use by subclasses.
|
protected boolean |
isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
|
protected java.net.URLConnection |
newURLConnection(java.net.URL pURL) |
java.lang.Object |
sendRequest(XmlRpcRequest pRequest)
Send an XML-RPC message.
|
protected void |
setRequestHeader(java.lang.String pHeader,
java.lang.String pValue) |
protected void |
writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) |
getUserAgent, initHttpHeaders, isUsingByteArrayOutput, newReqWriter, setCompressionHeaders, setContentLength, setCredentialsisCompressingRequest, newXMLReader, readResponsegetClientpublic XmlRpcSunHttpTransport(XmlRpcClient pClient)
pClient - The client controlling this instance.protected java.net.URLConnection newURLConnection(java.net.URL pURL)
throws java.io.IOException
java.io.IOExceptionprotected java.net.URLConnection getURLConnection()
public java.lang.Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException
XmlRpcTransportsendRequest in interface XmlRpcTransportsendRequest in class XmlRpcHttpTransportpRequest - The request being performed.XmlRpcException - Performing the request failed.protected void setRequestHeader(java.lang.String pHeader,
java.lang.String pValue)
setRequestHeader in class XmlRpcHttpTransportprotected void close()
throws XmlRpcClientException
XmlRpcStreamTransportclose in class XmlRpcStreamTransportXmlRpcClientExceptionprotected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
XmlRpcStreamTransportisResponseGzipCompressed in class XmlRpcStreamTransportpConfig - The clients configuration.protected java.io.InputStream getInputStream()
throws XmlRpcException
XmlRpcStreamTransportgetInputStream in class XmlRpcStreamTransportXmlRpcExceptionprotected void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws java.io.IOException, XmlRpcException, org.xml.sax.SAXException
writeRequest in class XmlRpcStreamTransportjava.io.IOExceptionXmlRpcExceptionorg.xml.sax.SAXExceptionCopyright © 2001–2017. All rights reserved.