public class XmlRpcLiteHttpTransport extends XmlRpcHttpTransport
XmlRpcHttpTransport.ByteArrayReqWriter
XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl
USER_AGENT
Constructor and Description |
---|
XmlRpcLiteHttpTransport(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 boolean |
isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
Returns, whether the response is gzip compressed.
|
protected boolean |
isUsingByteArrayOutput(XmlRpcHttpClientConfig pConfig) |
protected java.net.Socket |
newSocket(boolean pSSL,
java.lang.String pHostName,
int pPort) |
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, newReqWriter, setCompressionHeaders, setContentLength, setCredentials
isCompressingRequest, newXMLReader, readResponse
getClient
public XmlRpcLiteHttpTransport(XmlRpcClient pClient)
pClient
- The client controlling this instance.public java.lang.Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException
XmlRpcTransport
sendRequest
in interface XmlRpcTransport
sendRequest
in class XmlRpcHttpTransport
pRequest
- The request being performed.XmlRpcException
- Performing the request failed.protected void setRequestHeader(java.lang.String pHeader, java.lang.String pValue)
setRequestHeader
in class XmlRpcHttpTransport
protected void close() throws XmlRpcClientException
XmlRpcStreamTransport
close
in class XmlRpcStreamTransport
XmlRpcClientException
protected java.net.Socket newSocket(boolean pSSL, java.lang.String pHostName, int pPort) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
protected boolean isResponseGzipCompressed(XmlRpcStreamRequestConfig pConfig)
XmlRpcStreamTransport
isResponseGzipCompressed
in class XmlRpcStreamTransport
pConfig
- The clients configuration.protected java.io.InputStream getInputStream() throws XmlRpcException
XmlRpcStreamTransport
getInputStream
in class XmlRpcStreamTransport
XmlRpcException
protected boolean isUsingByteArrayOutput(XmlRpcHttpClientConfig pConfig)
isUsingByteArrayOutput
in class XmlRpcHttpTransport
protected void writeRequest(XmlRpcStreamTransport.ReqWriter pWriter) throws XmlRpcException, java.io.IOException, org.xml.sax.SAXException
writeRequest
in class XmlRpcStreamTransport
XmlRpcException
java.io.IOException
org.xml.sax.SAXException
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.