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 String |
USER_AGENT
The user agent string.
|
| Modifier | Constructor and Description |
|---|---|
protected |
XmlRpcHttpTransport(XmlRpcClient pClient,
String pUserAgent) |
| Modifier and Type | Method and Description |
|---|---|
protected 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. |
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(String pHeader,
String pValue) |
close, getInputStream, isCompressingRequest, isResponseGzipCompressed, newXMLReader, readResponse, writeRequestgetClientpublic static final String USER_AGENT
protected XmlRpcHttpTransport(XmlRpcClient pClient, String pUserAgent)
protected String getUserAgent()
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 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, IOException, SAXException
XmlRpcStreamTransportXmlRpcStreamTransport.ReqWriter.newReqWriter in class XmlRpcStreamTransportXmlRpcException - Creating the instance failed.IOException - Creating the instance failed, because
an IOException occurs.SAXException - Creating the instance failed, because
the request could not be parsed.Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.