35 #include "DODSFilter.h"
41 #include "mime_util.h"
45 #include "InternalErr.h"
66 BESDEBUG(
"usage",
"writing usage/info" << endl ) ;
70 BESDEBUG(
"usage",
"done transmitting usage/info" << endl ) ;
72 catch( InternalErr &e )
74 string err =
"Failed to write usage: " + e.get_error_message() ;
75 throw BESDapError(err,
true, e.get_error_code(), __FILE__, __LINE__ );
79 string err =
"Failed to write usage: " + e.get_error_message() ;
80 throw BESDapError(err,
false, e.get_error_code(), __FILE__, __LINE__ ) ;
84 string err =
"Failed to write usage: Unknown exception caught";
void write_usage_response(ostream &strm, DDS &dds, DAS &das, const string &dataset_name, const string &server_name, bool httpheader)
Build an HTML page that summarizes the information held int eh DDS/DAS.
exception thrown if an internal error is found and is fatal to the BES
BESDASResponse * get_das()
ostream & get_output_stream()
virtual string access()=0
returns the true name of this container
BESDDSResponse * get_dds()
static void send_http_usage(BESResponseObject *obj, BESDataHandlerInterface &dhi)
error object created from libdap error objects and can handle those errors
Structure storing information used by the BES to handle the request.
container for a DAS and DDS needed to write out the usage information for a dataset.
void first_container()
set the container pointer to the first container in the containers list
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
static void send_basic_usage(BESResponseObject *obj, BESDataHandlerInterface &dhi)
Abstract base class representing a specific set of information in response to a request to the BES...
BESContainer * container
pointer to current container in this interface