public class XmlRpcSunHttpTransport extends XmlRpcHttpTransport
HttpURLConnection class.XmlRpcHttpTransport.ByteArrayReqWriterXmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImplUSER_AGENT| コンストラクタと説明 |
|---|
XmlRpcSunHttpTransport(XmlRpcClient pClient)
Creates a new instance.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
|
protected java.net.URLConnection |
newURLConnection(java.net.URL pURL) |
java.lang.Object |
sendRequest(org.apache.xmlrpc.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(org.apache.xmlrpc.XmlRpcRequest pRequest)
throws org.apache.xmlrpc.XmlRpcException
XmlRpcTransportsendRequest インタフェース内 XmlRpcTransportsendRequest クラス内 XmlRpcHttpTransportpRequest - The request being performed.org.apache.xmlrpc.XmlRpcException - Performing the request failed.protected void setRequestHeader(java.lang.String pHeader,
java.lang.String pValue)
setRequestHeader クラス内 XmlRpcHttpTransportprotected void close()
throws XmlRpcClientException
XmlRpcStreamTransportclose クラス内 XmlRpcStreamTransportXmlRpcClientExceptionprotected boolean isResponseGzipCompressed(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
XmlRpcStreamTransportisResponseGzipCompressed クラス内 XmlRpcStreamTransportpConfig - The clients configuration.protected java.io.InputStream getInputStream()
throws org.apache.xmlrpc.XmlRpcException
XmlRpcStreamTransportgetInputStream クラス内 XmlRpcStreamTransportorg.apache.xmlrpc.XmlRpcExceptionprotected void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws java.io.IOException, org.apache.xmlrpc.XmlRpcException, org.xml.sax.SAXException
writeRequest クラス内 XmlRpcStreamTransportjava.io.IOExceptionorg.apache.xmlrpc.XmlRpcExceptionorg.xml.sax.SAXException