#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# "\n        @type version: int\n        @param version: Which JSON-RPC version to use? The default is 1.0.\n\n        @type connectTimeout: float\n        @param connectTimeout: Connection timeout. Note that we don't connect\n            when creating this object, but in callRemote, so the timeout\n            will apply to callRemote.\n\n        @type credentials: twisted.cred.credentials.ICredentials\n        @param credentials: Credentials for basic HTTP authentication.\n            Supported are Anonymous and UsernamePassword classes.\n            If None then t.c.c.Anonymous object is used as default.\n\n        @type contextFactory: twisted.internet.ssl.ClientContextFactory\n        @param contextFactory: A context factory for SSL clients.\n            If None then Agent's default is used.\n\n        @type persistent: bool\n        @param persistent: Boolean indicating whether connections should be\n            persistent. If None then no persistent connections are created\n            (default behavior of t.w.c.Agent class).\n\n        @type maxPersistentPerHost: int\n        @param maxPersistentPerHost: The maximum number of cached persistent\n            connections for a host:port destination.\n\n        @type cachedConnectionTimeout: int\n        @param cachedConnectionTimeout: Number of seconds a cached persistent\n            connection will stay open before disconnecting.\n\n        @type retryAutomatically: bool\n        @param retryAutomatically: Boolean indicating whether idempotent\n            requests should be retried once if no response was received.\n\n        @type compressedHTTP: bool\n        @param compressedHTTP: Boolean indicating whether proxies can support\n            HTTP compression (actually gzip).\n\n        @type sharedPool: bool\n        @type sharedPool: Share one connection pool between all created proxies.\n            The default is False.\n        " #NEWLINE# self . _version = ( kwargs . get ( 'version' ) or jsonrpc . VERSION_1 ) #NEWLINE# self . _connectTimeout = kwargs . get ( 'connectTimeout' ) #NEWLINE# self . _credentials = kwargs . get ( 'credentials' ) #NEWLINE# self . _contextFactory = kwargs . get ( 'contextFactory' ) #NEWLINE# self . _persistent = ( kwargs . get ( 'persistent' ) or False ) #NEWLINE# self . _maxPersistentPerHost = kwargs . get ( 'maxPersistentPerHost' ) #NEWLINE# if ( self . _maxPersistentPerHost is None ) : #NEWLINE# #INDENT# self . _maxPersistentPerHost = HTTPConnectionPool . maxPersistentPerHost #NEWLINE# #UNINDENT# self . _cachedConnectionTimeout = kwargs . get ( 'cachedConnectionTimeout' ) #NEWLINE# if ( self . _cachedConnectionTimeout is None ) : #NEWLINE# #INDENT# self . _cachedConnectionTimeout = HTTPConnectionPool . cachedConnectionTimeout #NEWLINE# #UNINDENT# self . _retryAutomatically = kwargs . get ( 'retryAutomatically' ) #NEWLINE# if ( self . _retryAutomatically is None ) : #NEWLINE# #INDENT# self . _retryAutomatically = HTTPConnectionPool . retryAutomatically #NEWLINE# #UNINDENT# self . _compressedHTTP = ( kwargs . get ( 'compressedHTTP' ) or False ) #NEWLINE# self . _sharedPool = ( kwargs . get ( 'sharedPool' ) or False ) #NEWLINE# self . _pool = None #NEWLINE# if self . _sharedPool : #NEWLINE# #INDENT# self . _pool = self . _getConnectionPool ( )