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__ << endl);
87 virtual void dump(ostream &strm)
const;
92 #endif // _HttpdCatalog_h_ exception thrown if inernal error encountered
virtual std::string get_root() const
virtual BESCatalogEntry * show_catalog(const string &container, BESCatalogEntry *)
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 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...
HttpdCatalog(const std::string &catalog_name=HTTPD_CATALOG_NAME)
A catalog based on scraping the directory pages produced by httpd .
Catalogs provide a hierarchical organization for data.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void get_site_map(const std::string &, const std::string &, const std::string &, ostream &, const std::string &) const