public abstract class XmlRpcHttpTransport extends XmlRpcStreamTransport
XmlRpcSunHttpTransport,
or XmlRpcCommonsTransport.| Modifier and Type | Class and Description |
|---|---|
protected class |
XmlRpcHttpTransport.ByteArrayReqWriter |
XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
USER_AGENT
The user agent string.
|
| Modifier | Constructor and Description |
|---|---|
protected |
XmlRpcHttpTransport(XmlRpcClient pClient,
java.lang.String pUserAgent) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getUserAgent() |
protected void |
initHttpHeaders(XmlRpcRequest pRequest) |
protected boolean |
isUsingByteArrayOutput(XmlRpcHttpClientConfig pConfig) |
protected XmlRpcStreamTransport.ReqWriter |
newReqWriter(XmlRpcRequest pRequest)
Creates a new instance of
XmlRpcStreamTransport.ReqWriter. |
java.lang.Object |
sendRequest(XmlRpcRequest pRequest)
Send an XML-RPC message.
|
protected void |
setCompressionHeaders(XmlRpcHttpClientConfig pConfig) |
protected void |
setContentLength(int pLength) |
protected void |
setCredentials(XmlRpcHttpClientConfig pConfig) |
protected abstract void |
setRequestHeader(java.lang.String pHeader,
java.lang.String pValue) |
close, getInputStream, isCompressingRequest, isResponseGzipCompressed, newXMLReader, readResponse, writeRequestgetClientprotected XmlRpcHttpTransport(XmlRpcClient pClient, java.lang.String pUserAgent)
protected java.lang.String getUserAgent()
protected abstract void setRequestHeader(java.lang.String pHeader,
java.lang.String pValue)
protected void setCredentials(XmlRpcHttpClientConfig pConfig) throws XmlRpcClientException
XmlRpcClientExceptionprotected void setContentLength(int pLength)
protected void setCompressionHeaders(XmlRpcHttpClientConfig pConfig)
protected void initHttpHeaders(XmlRpcRequest pRequest) throws XmlRpcClientException
XmlRpcClientExceptionpublic java.lang.Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException
XmlRpcTransportsendRequest in interface XmlRpcTransportsendRequest in class XmlRpcStreamTransportpRequest - The request being performed.XmlRpcException - Performing the request failed.protected boolean isUsingByteArrayOutput(XmlRpcHttpClientConfig pConfig)
protected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest) throws XmlRpcException, java.io.IOException, org.xml.sax.SAXException
XmlRpcStreamTransportXmlRpcStreamTransport.ReqWriter.newReqWriter in class XmlRpcStreamTransportXmlRpcException - Creating the instance failed.java.io.IOException - Creating the instance failed, because
an IOException occurs.org.xml.sax.SAXException - Creating the instance failed, because
the request could not be parsed.Copyright © 2001-2013. All Rights Reserved.