27#ifndef _HttpdCatalog_h_
28#define _HttpdCatalog_h_ 1
34#include "BESCatalog.h"
35#include "BESInternalError.h"
36#include "HttpdCatalogNames.h"
45namespace 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;
exception thrown if internal error encountered
virtual bes::CatalogNode * get_node(const std::string &path) const
Produces the bes::CatalogNode for the string ppath.
HttpdCatalog(const std::string &catalog_name=HTTPD_CATALOG_NAME)
A catalog based on scraping the directory pages produced by httpd .
virtual void get_site_map(const std::string &, const std::string &, const std::string &, std::ostream &, const std::string &) const
virtual BESCatalogEntry * show_catalog(const std::string &container, BESCatalogEntry *)
virtual std::string get_root() const
virtual void dump(std::ostream &strm) const
dumps information about this object
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...