bes
Updated for version 3.20.6
|
27 #ifndef _HttpdCatalog_h_
28 #define _HttpdCatalog_h_ 1
34 #include "BESCatalog.h"
35 #include "BESInternalError.h"
36 #include "HttpdCatalogNames.h"
45 namespace httpd_catalog {
52 std::map<std::string,std::string> d_httpd_catalogs;
55 HttpdCatalog(
const std::string &catalog_name = HTTPD_CATALOG_NAME);
63 throw BESInternalError(
"The HttpdCatalog::show_catalog() method is not supported. (container: '" + container +
"')",__FILE__,__LINE__);
69 virtual std::string
get_root()
const {
return ""; }
79 const std::string &)
const {
80 BESDEBUG(MODULE,
"The HttpdCatalog::get_site_map() method is not currently supported. SKIPPING. file: " << __FILE__ <<
" line: " << __LINE__ << std::endl);
87 virtual void dump(std::ostream &strm)
const;
92 #endif // _HttpdCatalog_h_
virtual void get_site_map(const std::string &, const std::string &, const std::string &, std::ostream &, const std::string &) const
virtual std::string path_to_access_url(const std::string &path) const
Takes a path which begins with the name of an HttpdCatalog collection and returns the associated acce...
virtual std::string get_root() const
virtual bes::CatalogNode * get_node(const std::string &path) const
Produces the bes::CatalogNode for the string ppath.
builds catalogs from a directory structure exposed by Apache httpd
virtual BESCatalogEntry * show_catalog(const std::string &container, BESCatalogEntry *)
exception thrown if internal error encountered
virtual void dump(std::ostream &strm) const
dumps information about this object
Catalogs provide a hierarchical organization for data.
HttpdCatalog(const std::string &catalog_name=HTTPD_CATALOG_NAME)
A catalog based on scraping the directory pages produced by httpd .