Package org.apache.xmlrpc.client
Class XmlRpcHttpTransport
java.lang.Object
org.apache.xmlrpc.client.XmlRpcTransportImpl
org.apache.xmlrpc.client.XmlRpcStreamTransport
org.apache.xmlrpc.client.XmlRpcHttpTransport
- All Implemented Interfaces:
XmlRpcTransport
- Direct Known Subclasses:
XmlRpcLiteHttpTransport,XmlRpcSunHttpTransport
Abstract base implementation of an HTTP transport. Base class for the
concrete implementations, like
.
XmlRpcSunHttpTransport,
or
invalid reference
org.apache.xmlrpc.client.XmlRpcCommonsTransport
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport
XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXmlRpcHttpTransport(XmlRpcClient pClient, String pUserAgent) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidinitHttpHeaders(XmlRpcRequest pRequest) protected booleanprotected XmlRpcStreamTransport.ReqWriternewReqWriter(XmlRpcRequest pRequest) Creates a new instance ofXmlRpcStreamTransport.ReqWriter.sendRequest(XmlRpcRequest pRequest) Send an XML-RPC message.protected voidprotected voidsetContentLength(int pLength) protected voidsetCredentials(XmlRpcHttpClientConfig pConfig) protected abstract voidsetRequestHeader(String pHeader, String pValue) Methods inherited from class org.apache.xmlrpc.client.XmlRpcStreamTransport
close, getInputStream, isCompressingRequest, isResponseGzipCompressed, newXMLReader, readResponse, writeRequestMethods inherited from class org.apache.xmlrpc.client.XmlRpcTransportImpl
getClient
-
Field Details
-
USER_AGENT
The user agent string. -
userAgent
-
-
Constructor Details
-
XmlRpcHttpTransport
-
-
Method Details
-
getUserAgent
-
setRequestHeader
-
setCredentials
- Throws:
XmlRpcClientException
-
setContentLength
protected void setContentLength(int pLength) -
setCompressionHeaders
-
initHttpHeaders
- Throws:
XmlRpcClientException
-
sendRequest
Description copied from interface:XmlRpcTransportSend an XML-RPC message. This method is called to send a message to the other party.- Specified by:
sendRequestin interfaceXmlRpcTransport- Overrides:
sendRequestin classXmlRpcStreamTransport- Parameters:
pRequest- The request being performed.- Returns:
- Result object, if invoking the remote method was successfull.
- Throws:
XmlRpcException- Performing the request failed.
-
isUsingByteArrayOutput
-
newReqWriter
protected XmlRpcStreamTransport.ReqWriter newReqWriter(XmlRpcRequest pRequest) throws XmlRpcException, IOException, SAXException Description copied from class:XmlRpcStreamTransportCreates a new instance ofXmlRpcStreamTransport.ReqWriter.- Overrides:
newReqWriterin classXmlRpcStreamTransport- Throws:
XmlRpcException- Creating the instance failed.IOException- Creating the instance failed, because anIOExceptionoccurs.SAXException- Creating the instance failed, because the request could not be parsed.
-