bes Updated for version 3.20.13
|
utility class for the HTTP catalog module More...
Classes | |
class | AllowedHosts |
Can a given URL be dereferenced given the BES's configuration? More... | |
class | EffectiveUrl |
class | EffectiveUrlCache |
class | HttpCache |
A cache for content accessed via HTTP. More... | |
class | ProxyConfig |
class | RemoteResource |
class | url |
Functions | |
string | get_real_name_extension (const string &identifier) |
void | get_type_from_content_type (const string &ctype, string &type) |
void | get_type_from_disposition (const string &disp, string &type) |
void | get_type_from_url (const string &url, string &type) |
bool | is_url (const string &candidate) |
size_t | load_max_redirects_from_keys () |
void | load_mime_list_from_keys (map< string, string > &mime_list) |
void | load_proxy_from_keys () |
utility class for the HTTP catalog module
This class provides utilities that extract information from a URL or the returned headers of an HTTP response. It also provides storage for a number of values read from the httpd_catalog.conf configuration file.
string http::get_real_name_extension | ( | const string & | identifier | ) |
This helper function looks at the passed identifier and tries to formulate a human readable summary string for use in dataset naming etc.
identifier | A string holding the identifier to summarize. |
Definition at line 246 of file HttpCache.cc.
void http::get_type_from_content_type | ( | const string & | ctype, |
string & | type | ||
) |
Definition at line 148 of file HttpUtils.cc.
void http::get_type_from_disposition | ( | const string & | disp, |
string & | type | ||
) |
Look for the type of handler that can read the filename found in the
disp | The disposition string |
type | The type of the handler that can read this file or the empty string if the BES Catalog Utils cannot find a handler to read it. |
Definition at line 110 of file HttpUtils.cc.
void http::get_type_from_url | ( | const string & | url, |
string & | type | ||
) |
Definition at line 168 of file HttpUtils.cc.
bool http::is_url | ( | const string & | candidate | ) |
Definition at line 227 of file HttpCache.cc.
size_t http::load_max_redirects_from_keys | ( | ) |
Loads the value of Http.MaxRedirects from TheBESKeys. If the value is not found, then it is set to the default, HTTP_MAX_REDIRECTS_DEFAULT
Definition at line 178 of file HttpUtils.cc.
void http::load_mime_list_from_keys | ( | map< string, string > & | mime_list | ) |