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, writeRequest
getClient
public static final String USER_AGENT
protected XmlRpcHttpTransport(XmlRpcClient pClient, String pUserAgent)
protected String getUserAgent()
protected void setCredentials(XmlRpcHttpClientConfig pConfig) throws XmlRpcClientException
XmlRpcClientException
protected void setContentLength(int pLength)
protected void setCompressionHeaders(XmlRpcHttpClientConfig pConfig)
protected void initHttpHeaders(XmlRpcRequest pRequest) throws XmlRpcClientException
XmlRpcClientException
public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException
XmlRpcTransport
sendRequest
in interface XmlRpcTransport
sendRequest
in class XmlRpcStreamTransport
pRequest
- The request being performed.XmlRpcException
- Performing the request failed.protected boolean isUsingByteArrayOutput(XmlRpcHttpClientConfig pConfig)
protected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest) throws XmlRpcException, IOException, SAXException
XmlRpcStreamTransport
XmlRpcStreamTransport.ReqWriter
.newReqWriter
in class XmlRpcStreamTransport
XmlRpcException
- 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–2023 The Apache Software Foundation. All rights reserved.