org.opennms.netmgt.xmlrpcd
Class TimeoutSecureXmlRpcClient

java.lang.Object
  extended by org.apache.xmlrpc.XmlRpcClient
      extended by org.opennms.netmgt.xmlrpcd.TimeoutSecureXmlRpcClient
All Implemented Interfaces:
org.apache.xmlrpc.XmlRpcHandler

public class TimeoutSecureXmlRpcClient
extends org.apache.xmlrpc.XmlRpcClient

This class was copied from org.apache.xmlrpc.secure.SecureXmlRpcClient with a read timeout added to non https clients.


Field Summary
protected  int timeout
           
 
Fields inherited from class org.apache.xmlrpc.XmlRpcClient
asyncWorkers, pool, transportFactory, url, workers
 
Constructor Summary
TimeoutSecureXmlRpcClient(String url, int timeout)
          Construct a XML-RPC client for the URL represented by this String, with timeout.
TimeoutSecureXmlRpcClient(String hostname, int port, int timeout)
          Construct a XML-RPC client for the specified hostname and port, with timeout.
TimeoutSecureXmlRpcClient(URL url, int timeout)
          Construct a XML-RPC client with this URL, with timeout.
 
Method Summary
static void main(String[] args)
          Just for testing.
 void setup()
          This allows us to setup
 
Methods inherited from class org.apache.xmlrpc.XmlRpcClient
createTransport, execute, execute, execute, executeAsync, executeAsync, executeAsync, getMaxThreads, getTimeZone, getURL, setBasicAuthentication, setMaxThreads, setTimeZone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeout

protected int timeout
Constructor Detail

TimeoutSecureXmlRpcClient

public TimeoutSecureXmlRpcClient(URL url,
                                 int timeout)
Construct a XML-RPC client with this URL, with timeout.


TimeoutSecureXmlRpcClient

public TimeoutSecureXmlRpcClient(String url,
                                 int timeout)
                          throws MalformedURLException
Construct a XML-RPC client for the URL represented by this String, with timeout.

Throws:
MalformedURLException

TimeoutSecureXmlRpcClient

public TimeoutSecureXmlRpcClient(String hostname,
                                 int port,
                                 int timeout)
                          throws MalformedURLException
Construct a XML-RPC client for the specified hostname and port, with timeout.

Throws:
MalformedURLException
Method Detail

setup

public void setup()
           throws Exception
This allows us to setup

Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Just for testing.

Throws:
Exception


Copyright © 2009. All Rights Reserved.