# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. # This file is compatible with both classic and new-style classes. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_communication', [dirname(__file__)]) except ImportError: from arc import _communication return _communication if fp is not None: try: _mod = imp.load_module('_communication', fp, pathname, description) finally: fp.close() return _mod _communication = swig_import_helper() del swig_import_helper else: from arc import _communication del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static) or hasattr(self,name): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 class SwigPyIterator(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _communication.delete_SwigPyIterator __del__ = lambda self : None; def value(self): return _communication.SwigPyIterator_value(self) def incr(self, n = 1): return _communication.SwigPyIterator_incr(self, n) def decr(self, n = 1): return _communication.SwigPyIterator_decr(self, n) def distance(self, *args): return _communication.SwigPyIterator_distance(self, *args) def equal(self, *args): return _communication.SwigPyIterator_equal(self, *args) def copy(self): return _communication.SwigPyIterator_copy(self) def next(self): return _communication.SwigPyIterator_next(self) def __next__(self): return _communication.SwigPyIterator___next__(self) def previous(self): return _communication.SwigPyIterator_previous(self) def advance(self, *args): return _communication.SwigPyIterator_advance(self, *args) def __eq__(self, *args): return _communication.SwigPyIterator___eq__(self, *args) def __ne__(self, *args): return _communication.SwigPyIterator___ne__(self, *args) def __iadd__(self, *args): return _communication.SwigPyIterator___iadd__(self, *args) def __isub__(self, *args): return _communication.SwigPyIterator___isub__(self, *args) def __add__(self, *args): return _communication.SwigPyIterator___add__(self, *args) def __sub__(self, *args): return _communication.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator_swigregister = _communication.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) import warnings def deprecated(method): """This decorator is used to mark python methods as deprecated, _not_ functions. It will result in a warning being emmitted when the method is used.""" def newMethod(*args, **kwargs): warnings.warn("Call to deprecated method 'arc.%s.%s'." % (args[0].__class__.__name__, method.__name__), category = DeprecationWarning, stacklevel = 2) return method(*args, **kwargs) newMethod.__name__ = method.__name__ newMethod.__doc__ = method.__doc__ newMethod.__dict__.update(method.__dict__) return newMethod class StaticPropertyWrapper(object): def __init__(self, wrapped_class): object.__setattr__(self, "wrapped_class", wrapped_class) def __getattr__(self, name): orig_attr = getattr(self.wrapped_class, name) if isinstance(orig_attr, property): return orig_attr.fget() else: return orig_attr def __setattr__(self, name, value): orig_attr = getattr(self.wrapped_class, name) if isinstance(orig_attr, property): orig_attr.fset(value) else: setattr(self.wrapped_class, name, value) from arc import common class ClientInterface(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ClientInterface, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ClientInterface, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_ClientInterface(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_ClientInterface __del__ = lambda self : None; def Overlay(self, *args): return _communication.ClientInterface_Overlay(self, *args) def GetConfig(self): return _communication.ClientInterface_GetConfig(self) def GetContext(self): return _communication.ClientInterface_GetContext(self) def Load(self): return _communication.ClientInterface_Load(self) ClientInterface_swigregister = _communication.ClientInterface_swigregister ClientInterface_swigregister(ClientInterface) NoSec = _communication.NoSec TLSSec = _communication.TLSSec GSISec = _communication.GSISec SSL3Sec = _communication.SSL3Sec GSIIOSec = _communication.GSIIOSec TLS10Sec = _communication.TLS10Sec TLS11Sec = _communication.TLS11Sec TLS12Sec = _communication.TLS12Sec DTLSSec = _communication.DTLSSec DTLS10Sec = _communication.DTLS10Sec DTLS12Sec = _communication.DTLS12Sec NoEnc = _communication.NoEnc RequireEnc = _communication.RequireEnc PreferEnc = _communication.PreferEnc OptionalEnc = _communication.OptionalEnc UseNoCred = _communication.UseNoCred UseX509Cred = _communication.UseX509Cred class TCPSec(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, TCPSec, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, TCPSec, name) __repr__ = _swig_repr __swig_setmethods__["sec"] = _communication.TCPSec_sec_set __swig_getmethods__["sec"] = _communication.TCPSec_sec_get if _newclass:sec = _swig_property(_communication.TCPSec_sec_get, _communication.TCPSec_sec_set) __swig_setmethods__["enc"] = _communication.TCPSec_enc_set __swig_getmethods__["enc"] = _communication.TCPSec_enc_get if _newclass:enc = _swig_property(_communication.TCPSec_enc_get, _communication.TCPSec_enc_set) __swig_setmethods__["cred"] = _communication.TCPSec_cred_set __swig_getmethods__["cred"] = _communication.TCPSec_cred_get if _newclass:cred = _swig_property(_communication.TCPSec_cred_get, _communication.TCPSec_cred_set) def __init__(self, *args): this = _communication.new_TCPSec(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_TCPSec __del__ = lambda self : None; TCPSec_swigregister = _communication.TCPSec_swigregister TCPSec_swigregister(TCPSec) class ClientTCP(ClientInterface): __swig_setmethods__ = {} for _s in [ClientInterface]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ClientTCP, name, value) __swig_getmethods__ = {} for _s in [ClientInterface]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ClientTCP, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_ClientTCP(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_ClientTCP __del__ = lambda self : None; def process(self, *args): return _communication.ClientTCP_process(self, *args) def GetEntry(self): return _communication.ClientTCP_GetEntry(self) def Load(self): return _communication.ClientTCP_Load(self) def AddSecHandler(self, *args): return _communication.ClientTCP_AddSecHandler(self, *args) ClientTCP_swigregister = _communication.ClientTCP_swigregister ClientTCP_swigregister(ClientTCP) class HTTPClientInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, HTTPClientInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, HTTPClientInfo, name) __repr__ = _swig_repr __swig_setmethods__["code"] = _communication.HTTPClientInfo_code_set __swig_getmethods__["code"] = _communication.HTTPClientInfo_code_get if _newclass:code = _swig_property(_communication.HTTPClientInfo_code_get, _communication.HTTPClientInfo_code_set) __swig_setmethods__["reason"] = _communication.HTTPClientInfo_reason_set __swig_getmethods__["reason"] = _communication.HTTPClientInfo_reason_get if _newclass:reason = _swig_property(_communication.HTTPClientInfo_reason_get, _communication.HTTPClientInfo_reason_set) __swig_setmethods__["size"] = _communication.HTTPClientInfo_size_set __swig_getmethods__["size"] = _communication.HTTPClientInfo_size_get if _newclass:size = _swig_property(_communication.HTTPClientInfo_size_get, _communication.HTTPClientInfo_size_set) __swig_setmethods__["lastModified"] = _communication.HTTPClientInfo_lastModified_set __swig_getmethods__["lastModified"] = _communication.HTTPClientInfo_lastModified_get if _newclass:lastModified = _swig_property(_communication.HTTPClientInfo_lastModified_get, _communication.HTTPClientInfo_lastModified_set) __swig_setmethods__["type"] = _communication.HTTPClientInfo_type_set __swig_getmethods__["type"] = _communication.HTTPClientInfo_type_get if _newclass:type = _swig_property(_communication.HTTPClientInfo_type_get, _communication.HTTPClientInfo_type_set) __swig_setmethods__["cookies"] = _communication.HTTPClientInfo_cookies_set __swig_getmethods__["cookies"] = _communication.HTTPClientInfo_cookies_get if _newclass:cookies = _swig_property(_communication.HTTPClientInfo_cookies_get, _communication.HTTPClientInfo_cookies_set) __swig_setmethods__["headers"] = _communication.HTTPClientInfo_headers_set __swig_getmethods__["headers"] = _communication.HTTPClientInfo_headers_get if _newclass:headers = _swig_property(_communication.HTTPClientInfo_headers_get, _communication.HTTPClientInfo_headers_set) __swig_setmethods__["location"] = _communication.HTTPClientInfo_location_set __swig_getmethods__["location"] = _communication.HTTPClientInfo_location_get if _newclass:location = _swig_property(_communication.HTTPClientInfo_location_get, _communication.HTTPClientInfo_location_set) __swig_setmethods__["keep_alive"] = _communication.HTTPClientInfo_keep_alive_set __swig_getmethods__["keep_alive"] = _communication.HTTPClientInfo_keep_alive_get if _newclass:keep_alive = _swig_property(_communication.HTTPClientInfo_keep_alive_get, _communication.HTTPClientInfo_keep_alive_set) def __init__(self): this = _communication.new_HTTPClientInfo() try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_HTTPClientInfo __del__ = lambda self : None; HTTPClientInfo_swigregister = _communication.HTTPClientInfo_swigregister HTTPClientInfo_swigregister(HTTPClientInfo) class ClientHTTPAttributes(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ClientHTTPAttributes, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ClientHTTPAttributes, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_ClientHTTPAttributes(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_ClientHTTPAttributes __del__ = lambda self : None; ClientHTTPAttributes_swigregister = _communication.ClientHTTPAttributes_swigregister ClientHTTPAttributes_swigregister(ClientHTTPAttributes) class ClientHTTP(ClientTCP): __swig_setmethods__ = {} for _s in [ClientTCP]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ClientHTTP, name, value) __swig_getmethods__ = {} for _s in [ClientTCP]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ClientHTTP, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_ClientHTTP(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_ClientHTTP __del__ = lambda self : None; def process(self, *args): return _communication.ClientHTTP_process(self, *args) def GetEntry(self): return _communication.ClientHTTP_GetEntry(self) def AddSecHandler(self, *args): return _communication.ClientHTTP_AddSecHandler(self, *args) def Load(self): return _communication.ClientHTTP_Load(self) def RelativeURI(self, *args): return _communication.ClientHTTP_RelativeURI(self, *args) def GetURL(self): return _communication.ClientHTTP_GetURL(self) def GetClosed(self): return _communication.ClientHTTP_GetClosed(self) ClientHTTP_swigregister = _communication.ClientHTTP_swigregister ClientHTTP_swigregister(ClientHTTP) class ClientSOAP(ClientHTTP): __swig_setmethods__ = {} for _s in [ClientHTTP]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ClientSOAP, name, value) __swig_getmethods__ = {} for _s in [ClientHTTP]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ClientSOAP, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_ClientSOAP(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_ClientSOAP __del__ = lambda self : None; def process(self, *args): return _communication.ClientSOAP_process(self, *args) def GetEntry(self): return _communication.ClientSOAP_GetEntry(self) def AddSecHandler(self, *args): return _communication.ClientSOAP_AddSecHandler(self, *args) def Load(self): return _communication.ClientSOAP_Load(self) ClientSOAP_swigregister = _communication.ClientSOAP_swigregister ClientSOAP_swigregister(ClientSOAP) class SecHandlerConfig(common.XMLNode): __swig_setmethods__ = {} for _s in [common.XMLNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, SecHandlerConfig, name, value) __swig_getmethods__ = {} for _s in [common.XMLNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, SecHandlerConfig, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_SecHandlerConfig(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_SecHandlerConfig __del__ = lambda self : None; SecHandlerConfig_swigregister = _communication.SecHandlerConfig_swigregister SecHandlerConfig_swigregister(SecHandlerConfig) class DNListHandlerConfig(SecHandlerConfig): __swig_setmethods__ = {} for _s in [SecHandlerConfig]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, DNListHandlerConfig, name, value) __swig_getmethods__ = {} for _s in [SecHandlerConfig]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, DNListHandlerConfig, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_DNListHandlerConfig(*args) try: self.this.append(this) except: self.this = this def AddDN(self, *args): return _communication.DNListHandlerConfig_AddDN(self, *args) __swig_destroy__ = _communication.delete_DNListHandlerConfig __del__ = lambda self : None; DNListHandlerConfig_swigregister = _communication.DNListHandlerConfig_swigregister DNListHandlerConfig_swigregister(DNListHandlerConfig) class ARCPolicyHandlerConfig(SecHandlerConfig): __swig_setmethods__ = {} for _s in [SecHandlerConfig]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ARCPolicyHandlerConfig, name, value) __swig_getmethods__ = {} for _s in [SecHandlerConfig]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ARCPolicyHandlerConfig, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_ARCPolicyHandlerConfig(*args) try: self.this.append(this) except: self.this = this def AddPolicy(self, *args): return _communication.ARCPolicyHandlerConfig_AddPolicy(self, *args) __swig_destroy__ = _communication.delete_ARCPolicyHandlerConfig __del__ = lambda self : None; ARCPolicyHandlerConfig_swigregister = _communication.ARCPolicyHandlerConfig_swigregister ARCPolicyHandlerConfig_swigregister(ARCPolicyHandlerConfig) DELEG_ARC = _communication.DELEG_ARC DELEG_GRIDSITE = _communication.DELEG_GRIDSITE DELEG_GT4 = _communication.DELEG_GT4 DELEG_MYPROXY = _communication.DELEG_MYPROXY DELEG_UNKNOWN = _communication.DELEG_UNKNOWN class ClientX509Delegation(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ClientX509Delegation, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ClientX509Delegation, name) __repr__ = _swig_repr def __init__(self, *args): this = _communication.new_ClientX509Delegation(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _communication.delete_ClientX509Delegation __del__ = lambda self : None; def createDelegation(self, *args): return _communication.ClientX509Delegation_createDelegation(self, *args) def destroyDelegation(self, *args): return _communication.ClientX509Delegation_destroyDelegation(self, *args) def acquireDelegation(self, *args): return _communication.ClientX509Delegation_acquireDelegation(self, *args) ClientX509Delegation_swigregister = _communication.ClientX509Delegation_swigregister ClientX509Delegation_swigregister(ClientX509Delegation)