

Suggested encoding, user credentials and the like) have been stored. Until Apache XML-RPC 2.0, this object was used both as an objectįactory and as a place, where configuration details (server URL, XmlRpcClient in a static variable, unless you would be It is designed with singletons in mind: Basically,Īn application should be able to hold a single instance of This object serves mainlyĪs an object factory. The main access point of an XML-RPC client. Throw new Exception( "Unable to contact SM " + CONTROLLER_URL) Throw new Exception( "Unable to contact SM " + CONTROLLER_URL + " due to " + e)

Throw new Exception( "Please check the SM URL " + CONTROLLER_URL) Public Map getVersion() throws Exception ) Finally - since the SimpleHttpConnectionManager only // provides one backend HttpConnection, ensure that the // XmlRpcClient only has one backend worker available to // consume it. New XmlRpcCommonsTransportFactory(xmlrpcClient) XmlrpcClientConfig = new XmlRpcClientConfigImpl() We use XmlRpcCommonsTransportFactory, initialized // using the HttpClient from above, so that SSLContexts // work. connMgr = new SimpleHttpConnectionManager( true ) ĬonnMgr.getParams().setConnectionTimeout( 10 * 1000 ) ĬonnMgr.getParams().setSoTimeout( 5 * 1000 ) Connect timeout, 10 seconds Read timeout, 5 seconds Close timeout, 3 seconds. All Rights Reserved.// We use our own HttpClient with an HttpConnectionManager // configured with timeouts, so we don't block the liveness // thread forever.
#Apache xml rpc client software#
Throws XmlRpcException Specified by: writeRequest in class XmlRpcStreamTransport Throws: XmlRpcExceptionĬopyright © 2001-2010 The Apache Software Foundation. Protected void writeRequest( XmlRpcStreamTransport.ReqWriter pWriter) Throws XmlRpcException Throws: XmlRpcException Returns: Whether the response stream is gzip compressed. Specified by: isResponseGzipCompressed in class XmlRpcStreamTransport Parameters: pConfig - The clients configuration. Protected boolean isResponseGzipCompressed( XmlRpcStreamRequestConfig pConfig) Description copied from class: XmlRpcStreamTransport Returns, whether the response is gzip compressed. Specified by: close in class XmlRpcStreamTransport Throws: XmlRpcClientException Throws XmlRpcClientException Description copied from class: XmlRpcStreamTransport Closes the connection and ensures, that all resources are being Throws XmlRpcClientException Overrides: setCredentials in class XmlRpcHttpTransport Throws: XmlRpcClientException Protected void setCredentials( XmlRpcHttpClientConfig pConfig) Specified by: getInputStream in class XmlRpcStreamTransport Throws: XmlRpcException Throws XmlRpcException Description copied from class: XmlRpcStreamTransport Returns the input stream, from which the response is Protected java.io.InputStream getInputStream()

Protected boolean isResponseGzipCompressed() pValue) Specified by: setRequestHeader in class XmlRpcHttpTransport Protected void setRequestHeader( pHeader, Protected .methods.PostMethod newPostMethod( XmlRpcHttpClientConfig pConfig) Throws XmlRpcClientException Overrides: initHttpHeaders in class XmlRpcHttpTransport Throws: XmlRpcClientException Protected void initHttpHeaders( XmlRpcRequest pRequest) Protected void setContentLength(int pLength) Overrides: setContentLength in class XmlRpcHttpTransport Parameters: pFactory - The factory, which created this transport. Public XmlRpcCommonsTransport( XmlRpcCommonsTransportFactory pFactory) Creates a new instance. Protected .methods.PostMethod method Constructor Detail Methods inherited from class Ĭlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait IsCompressingRequest, newXMLReader, readResponse GetUserAgent, isUsingByteArrayOutput, newReqWriter, sendRequest, setCompressionHeaders WriteRequest( XmlRpcStreamTransport.ReqWriter pWriter) SetCredentials( XmlRpcHttpClientConfig pConfig) NewPostMethod( XmlRpcHttpClientConfig pConfig) Returns, whether the response is gzip compressed. IsResponseGzipCompressed( XmlRpcStreamRequestConfig pConfig) Returns the input stream, from which the response is XmlRpcCommonsTransport( XmlRpcCommonsTransportFactory pFactory)Ĭloses the connection and ensures, that all resources are being Protected .methods.PostMethodįields inherited from class. XmlRpcStreamTransport.GzipReqWriter, XmlRpcStreamTransport.ReqWriter, XmlRpcStreamTransport.ReqWriterImpl Nested classes/interfaces inherited from class. Public class XmlRpcCommonsTransport extends XmlRpcHttpTransportĪn HTTP transport factory, which is based on the Jakarta Commons XmlRpcTransportImpl .XmlRpcStreamTransport .XmlRpcHttpTransport .XmlRpcCommonsTransport All Implemented Interfaces: XmlRpcTransport SUMMARY: NESTED | FIELD | CONSTR | METHOD XmlRpcCommonsTransport (Apache XML-RPC 3.1.4-SNAPSHOT API)
