Home | Trees | Index | Help |
---|
Package pyGlobus :: Module ftpClientAttr :: Class HandleAttr |
|
A class to wrap the ftp client handle attr functions.
It provides get and set methods for all of the various handle specific attributes, and hides the underlying memory management.Method Summary | |
---|---|
Constructs an instance. | |
Destroy an instance. | |
Enable caching for the specified url. | |
Add a plugin to a handle attribute set. | |
Creates a deep copy of itself. | |
Return the cache all attribute. | |
Return the underlying ftp client handle attr handle. | |
Disable caching for the specified url. | |
Remove a plugin from a handle attribute set. | |
Set the cache all attribute. | |
Set netlogger handle. |
Method Details |
---|
__init__(self,
handle=None,
own=1)
|
__del__(self)
|
add_cached_url(self, url)Enable caching for the specified url. The handle will keep the connection to the specified url open in between ftp operations.
|
add_plugin(self, plugin)Add a plugin to a handle attribute set. Each handle attribute set contains a list of plugins associated with it. When a handle is created with a particular attribute set, it will be associated with a copy of those plugins. Only one instance of a specific plugin may be added to an attribute set. Each plugin must have a different name. A copy of the plugin is created via the plugins 'copy' method when it is added to an attribute set. Thus, any changes to a particular plugin must be done before the plugin is added to an attribute set, and before the attribute set is used to create handles.
|
copy(self)Creates a deep copy of itself.
|
get_cache_all(self)Return the cache all attribute. If true, all connections on the handle will be cached in between connections. When this is enabled, the user skips the authentication handshake and connection establishment overhead for multiple subsequent ftp operations to the same server.
|
get_handle(self)Return the underlying ftp client handle attr handle.
|
remove_cached_url(self, url)Disable caching for the specified url. The handle will no longer keep the connection open to the specified url between connections.
|
remove_plugin(self, plugin)Remove a plugin from a handle attribute set. Each handle attribute set contains a list of plugins associated with it. When a handle is created with a particular attribute set, it will be associated with a copy of those plugins. Only one instance of a specific plugin may be added to an attribute set. Each plugin must have a different name. A copy of the plugin is created via the plugins 'copy' method when it is added to an attribute set. Thus, any changes to a particular plugin must be done before the plugin is added to an attribute set, and before the attribute set is used to create handles.
|
set_cache_all(self, cacheAll)Set the cache all attribute. If true, all connections on the handle will be cached in between connections. When this is enabled, the user skips the authentication handshake and connection establishment overhead for multiple subsequent ftp operations to the same server.
|
set_netlogger(self, nl_handle)Set netlogger handle.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Apr 4 14:32:52 2006 | http://epydoc.sf.net |