273 constructor(
string n_name,
string n_desc,
string n_url,
bool n_monitor, *
hash n_opts,
hash n_urlh, *
string n_safe_url);
283 static string getSafeUrl(
hash urlh);
292 hash<PingInfo> ping(
bool throw_exception =
False);
298 hash<PingInfo> pingIntern(hash<PingInfo> rv);
307 hash<ConnectionInfo> getInfo(
bool with_password =
False);
313 hash<ConfigInfo> getConfigHash();
321 *
hash getRuntimeOptions();
325 *
hash getDefaultOptions();
329 *
hash getRealOptions();
335 object get(
bool connect =
True, *
hash rtopts);
352 abstract object getImpl(
bool connect =
True, *
hash rtopts);
356 abstract string getType();
369 constructor(
string n_name,
string n_desc,
string n_url, *
hash n_opts,
string n_error,
hash urlh) ;
373 object getImpl (
bool connect=
True, *
hash rtopts);
422 *
hash getRuntimeOptions();
431 FtpClient getImpl(
bool connect =
True, *
hash rtopts);
436 static FtpConnection make(
string name,
string desc,
string url,
bool monitor, *
hash opts,
hash urlh);
459 "http_version":
True,
460 "max_redirects":
True,
463 "connect_timeout":
True,
464 "ssl_cert_path":
True,
465 "ssl_key_password":
True,
466 "ssl_key_path":
True,
467 "ssl_verify_cert":
True,
471 const DefaultOptions = (
473 "connect_timeout": 45s,
476 const OptionList = Options.keys();
523 *
hash getDefaultOptions();
548 const OptionList = Options.keys();
575 Dir getImpl(
bool connect =
True, *
hash rtopts);
593 *
hash priv_try_get_connections(
string mod);
*hash< string, AbstractConnection > get_connections(*bool verbose)
returns all known connections as a hash keyed by connection identifier; values are AbstractConnection...
bool monitor
monitoring flag
Definition: ConnectionProvider.qm.dox.h:246
*hash opts
the options set on the connection
Definition: ConnectionProvider.qm.dox.h:117
base class for HTTP-based connections that need their URLs rewritten to create the real connection ob...
Definition: ConnectionProvider.qm.dox.h:382
date last_check
date/time of last check/ping
Definition: ConnectionProvider.qm.dox.h:237
*date last_check
the date/time value of the last connection check (or NOTHING if not checked)
Definition: ConnectionProvider.qm.dox.h:100
class for filesystem connections; returns an object of type Qore::Dir; this can be used to monitor fi...
Definition: ConnectionProvider.qm.dox.h:538
string name
the connection name
Definition: ConnectionProvider.qm.dox.h:98
*hash opts
connection options
Definition: ConnectionProvider.qm.dox.h:231
class for HTTP connections; returns Qore::HTTPClient objects
Definition: ConnectionProvider.qm.dox.h:453
string status
a string giving the connection's status
Definition: ConnectionProvider.qm.dox.h:104
string info
a string giving the result of the ping ("OK" or an error message)
Definition: ConnectionProvider.qm.dox.h:128
string name
connection name
Definition: ConnectionProvider.qm.dox.h:216
string url
the full URL (including any username & password)
Definition: ConnectionProvider.qm.dox.h:116
AbstractConnection get_connection(string conn)
returns an AbstractConnection object if the identifier is known to a registered connection provider ...
*date updated
the date/time value of the update (or NOTHING if not updated)
Definition: ConnectionProvider.qm.dox.h:107
bool up
a boolean vaue indicating the connection is known to be up (will be False if not checked) ...
Definition: ConnectionProvider.qm.dox.h:106
hash urlh
broken down URL hash (as returned by Qore::parse_url())
Definition: ConnectionProvider.qm.dox.h:234
static *code post_processing
optional code for default post-processing of objects created by getImpl(); must take the object creat...
Definition: ConnectionProvider.qm.dox.h:255
*hash orig_opts
original connection options
Definition: ConnectionProvider.qm.dox.h:228
abstract base class for connections
Definition: ConnectionProvider.qm.dox.h:211
string safe_url
"safe" URL (password information removed)
Definition: ConnectionProvider.qm.dox.h:225
ping response info as returned by AbstractConnection::ping()
Definition: ConnectionProvider.qm.dox.h:121
string name
the name of the connection
Definition: ConnectionProvider.qm.dox.h:114
string type
the connection type
Definition: ConnectionProvider.qm.dox.h:105
string url
a safe version of the URL (without passwords)
Definition: ConnectionProvider.qm.dox.h:125
this class is used to mark invalid connections so they can be loaded and reported as invalid ...
Definition: ConnectionProvider.qm.dox.h:360
bool monitor
a boolean vaue indicating if the connection should be monitored or not
Definition: ConnectionProvider.qm.dox.h:102
*hash opts
the options set on the connection
Definition: ConnectionProvider.qm.dox.h:124
config informaton as returned by AbstractConnection::getConfigHash()
Definition: ConnectionProvider.qm.dox.h:113
hash url_hash
a hash of URL information as returned by parse_url()
Definition: ConnectionProvider.qm.dox.h:109
bool loopback
a boolean vaue indicating if the connection is a loopback connection
Definition: ConnectionProvider.qm.dox.h:101
string desc
the description
Definition: ConnectionProvider.qm.dox.h:115
date time
a relative date/time value giving the elapsed time of the ping operation
Definition: ConnectionProvider.qm.dox.h:127
*hash opts
the original options used to create the object
Definition: ConnectionProvider.qm.dox.h:103
string url
the URL for the connection including the password (if any present and the with_password argument is T...
Definition: ConnectionProvider.qm.dox.h:108
string desc
the description
Definition: ConnectionProvider.qm.dox.h:123
string desc
connection description
Definition: ConnectionProvider.qm.dox.h:219
date updated
date/time of last update
Definition: ConnectionProvider.qm.dox.h:249
string name
the name of the connection
Definition: ConnectionProvider.qm.dox.h:122
Definition: ConnectionProvider.qm.dox.h:592
string get_connection_url(string str)
returns a URL string for the given identifier if the identifier is known to a registered connection p...
connection information hash as returned by AbstractConnection::getInfo()
Definition: ConnectionProvider.qm.dox.h:97
class for FTP connections; returns Qore::FtpClient objects
Definition: ConnectionProvider.qm.dox.h:399
bool ok
a boolean value giving the result of the ping
Definition: ConnectionProvider.qm.dox.h:126
*hash< string, hash< ConnectionInfo > > get_connection_hash(*bool verbose)
returns a hash of connection information keyed by connection identifier; values are ConnectionInfo ha...
*hash ping_info
an optional free-form hash giving additional info regarding ping operation or the remote system ...
Definition: ConnectionProvider.qm.dox.h:129
string url
connection URL (potentially with password info)
Definition: ConnectionProvider.qm.dox.h:222
string desc
the connection description
Definition: ConnectionProvider.qm.dox.h:99
the ConnectionProvider namespace contains all the objects in the ConnectionProvider module ...
Definition: ConnectionProvider.qm.dox.h:95