bes Updated for version 3.20.13
http Namespace Reference

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 ()
 

Detailed Description

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.

Note
This class holds only static methods and fields. It has no constructor or destructor. Use the initialize() method to configure the various static fields based on the values of the BES configuration file(s).

Function Documentation

◆ get_real_name_extension()

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.

Parameters
identifierA string holding the identifier to summarize.
Returns
A human readable summary string for use in dataset naming etc.

Definition at line 246 of file HttpCache.cc.

◆ get_type_from_content_type()

void http::get_type_from_content_type ( const string &  ctype,
string &  type 
)

Definition at line 148 of file HttpUtils.cc.

◆ get_type_from_disposition()

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 string
  • disp (probably from a HTTP Content-Dispoition header) has the format:
filename[#|=]<value>[ <attribute name>[#|=]<value>]
Parameters
dispThe disposition string
typeThe 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.

◆ get_type_from_url()

void http::get_type_from_url ( const string &  url,
string &  type 
)

Definition at line 168 of file HttpUtils.cc.

◆ is_url()

bool http::is_url ( const string &  candidate)

Definition at line 227 of file HttpCache.cc.

◆ load_max_redirects_from_keys()

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.

◆ load_mime_list_from_keys()

void http::load_mime_list_from_keys ( map< string, string > &  mime_list)

Loads the passed

Parameters
mime_list

Definition at line 72 of file HttpUtils.cc.