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 InputStream |
getInputStream()
Returns the input stream, from which the response is
being read.
|
protected URLConnection |
getURLConnection()
For use by subclasses.
|
protected boolean |
isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
|
protected URLConnection |
newURLConnection(URL pURL) |
Object |
sendRequest(XmlRpcRequest pRequest)
Send an XML-RPC message.
|
protected void |
setRequestHeader(String pHeader,
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 URLConnection newURLConnection(URL pURL) throws IOException
IOExceptionprotected URLConnection getURLConnection()
public 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(String pHeader, 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 InputStream getInputStream() throws XmlRpcException
XmlRpcStreamTransportgetInputStream in class XmlRpcStreamTransportXmlRpcExceptionprotected void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws IOException, XmlRpcException, SAXException
writeRequest in class XmlRpcStreamTransportIOExceptionXmlRpcExceptionSAXExceptionCopyright © 2001–2025 The Apache Software Foundation. All rights reserved.