|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
response handler that builds an OPeNDAP WWW response object More...
#include <BESWWWResponseHandler.h>


Public Member Functions | |
| BESWWWResponseHandler (const string &name) | |
| virtual void | dump (ostream &strm) const |
| dumps information about this object More... | |
| virtual void | execute (BESDataHandlerInterface &dhi) |
| executes the command 'get html_form for <def_name>;' by executing the request for each container in the specified defnition. More... | |
| virtual string | get_name () const |
| return the name of this response object More... | |
| virtual BESResponseObject * | get_response_object () |
| return the current response object More... | |
| virtual BESResponseObject * | set_response_object (BESResponseObject *o) |
| replaces the current response object with the specified one, returning the current response object More... | |
| virtual void | transmit (BESTransmitter *transmitter, BESDataHandlerInterface &dhi) |
| transmit the response object built by the execute command using the specified transmitter object More... | |
| virtual | ~BESWWWResponseHandler (void) |
Static Public Member Functions | |
| static BESResponseHandler * | WWWResponseBuilder (const string &name) |
Protected Attributes | |
| BESResponseObject * | _response |
| string | _response_name |
response handler that builds an OPeNDAP WWW response object
A request 'get WWW for <def_name>;' will be handled by this response handler. Given a definition name it determines what containers are to be used to build the OPeNDAP WWW response object. It then transmits the DataDDS object as WWW values.
Definition at line 49 of file BESWWWResponseHandler.h.
| BESWWWResponseHandler::BESWWWResponseHandler | ( | const string & | name | ) |
Definition at line 44 of file BESWWWResponseHandler.cc.
Referenced by WWWResponseBuilder().
|
virtual |
Definition at line 49 of file BESWWWResponseHandler.cc.
|
virtualinherited |
dumps information about this object
Displays the pointer value of this instance along with the name of this response handler and, if present, dumps the response object itself.
| strm | C++ i/o stream to dump the information to |
Implements BESObj.
Reimplemented in BESDefineResponseHandler, ncml_module::NCMLCacheAggResponseHandler, BESSetContainerResponseHandler, BESDDXResponseHandler, BESDelDefResponseHandler, BESDelDefsResponseHandler, BESSetContextResponseHandler, BESDataDDXResponseHandler, BESCatalogResponseHandler, BESDelContainersResponseHandler, BESHelpResponseHandler, BESShowContainersResponseHandler, BESDelContainerResponseHandler, BESShowContextResponseHandler, BESDASResponseHandler, BESDataResponseHandler, BESShowErrorResponseHandler, BESVersionResponseHandler, BESDDSResponseHandler, BESConfigResponseHandler, BESShowDefsResponseHandler, BESStatusResponseHandler, BESDMRResponseHandler, BESProcIdResponseHandler, BESServicesResponseHandler, ShowPathInfoResponseHandler, BESStreamResponseHandler, and BESDap4ResponseHandler.
Definition at line 74 of file BESResponseHandler.cc.
References BESResponseHandler::_response, BESResponseHandler::_response_name, BESResponseObject::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Referenced by BESDap4ResponseHandler::dump(), BESStreamResponseHandler::dump(), ShowPathInfoResponseHandler::dump(), BESProcIdResponseHandler::dump(), BESServicesResponseHandler::dump(), BESDMRResponseHandler::dump(), BESStatusResponseHandler::dump(), BESConfigResponseHandler::dump(), BESDDSResponseHandler::dump(), BESShowDefsResponseHandler::dump(), BESDASResponseHandler::dump(), BESShowErrorResponseHandler::dump(), BESVersionResponseHandler::dump(), BESDataResponseHandler::dump(), BESShowContextResponseHandler::dump(), BESDelContainerResponseHandler::dump(), BESDelContainersResponseHandler::dump(), BESShowContainersResponseHandler::dump(), BESDataDDXResponseHandler::dump(), BESHelpResponseHandler::dump(), BESCatalogResponseHandler::dump(), BESDelDefsResponseHandler::dump(), BESDelDefResponseHandler::dump(), BESSetContextResponseHandler::dump(), BESDDXResponseHandler::dump(), BESSetContainerResponseHandler::dump(), BESDefineResponseHandler::dump(), and BESDataHandlerInterface::dump().

|
virtual |
executes the command 'get html_form for <def_name>;' by executing the request for each container in the specified defnition.
For each container in the specified defnition go to the request handler for that container and have it add to the OPeNDAP DAS response object. The DAS response object is built within this method and passed to the request handler list.
Once the DAS has been filled in do the same for a DDS. We only need the description of the data and not the data itself.
| dhi | structure that holds request and response information |
Implements BESResponseHandler.
Definition at line 70 of file BESWWWResponseHandler.cc.
References BESResponseHandler::_response, BESResponseHandler::_response_name, BESDataHandlerInterface::action, BESDataHandlerInterface::action_name, DAS_RESPONSE, DDS_RESPONSE, BESRequestHandlerList::execute_each(), NULL, BESRequestHandlerList::TheList(), WWW_RESPONSE, and WWW_RESPONSE_STR.

|
inlinevirtualinherited |
return the name of this response object
This name is used to determine which response handler can handle a requested response, such as das, dds, ddx, tab, info, version, help, etc...
Definition at line 156 of file BESResponseHandler.h.
References BESResponseHandler::_response_name.
|
virtualinherited |
return the current response object
Returns the current response object, null if one has not yet been created. The response handler maintains ownership of the response object.
Definition at line 53 of file BESResponseHandler.cc.
References BESResponseHandler::_response.
Referenced by FONgRequestHandler::build_help(), FoJsonRequestHandler::build_help(), W10nJsonRequestHandler::build_help(), FONcRequestHandler::build_help(), FONgRequestHandler::build_version(), FoJsonRequestHandler::build_version(), W10nJsonRequestHandler::build_version(), FONcRequestHandler::build_version(), CSVRequestHandler::csv_build_das(), CSVRequestHandler::csv_build_data(), CSVRequestHandler::csv_build_dds(), CSVRequestHandler::csv_build_dmr(), CSVRequestHandler::csv_build_help(), CSVRequestHandler::csv_build_vers(), DapRequestHandler::dap_build_dap4data(), DapRequestHandler::dap_build_das(), DapRequestHandler::dap_build_data(), DapRequestHandler::dap_build_dds(), DapRequestHandler::dap_build_dmr(), BESXDRequestHandler::dap_build_help(), BESUsageRequestHandler::dap_build_help(), BESDapRequestHandler::dap_build_help(), DapRequestHandler::dap_build_help(), DapRequestHandler::dap_build_vers(), BESXDRequestHandler::dap_build_version(), BESAsciiRequestHandler::dap_build_version(), BESUsageRequestHandler::dap_build_version(), BESDapRequestHandler::dap_build_version(), BESWWWRequestHandler::dap_build_version(), FFRequestHandler::ff_build_das(), FFRequestHandler::ff_build_data(), FFRequestHandler::ff_build_dds(), FFRequestHandler::ff_build_dmr(), FFRequestHandler::ff_build_help(), FFRequestHandler::ff_build_version(), FitsRequestHandler::fits_build_das(), FitsRequestHandler::fits_build_data(), FitsRequestHandler::fits_build_dds(), FitsRequestHandler::fits_build_dmr(), FitsRequestHandler::fits_build_help(), FitsRequestHandler::fits_build_vers(), GatewayRequestHandler::gateway_build_help(), GatewayRequestHandler::gateway_build_vers(), GDALRequestHandler::gdal_build_das(), GDALRequestHandler::gdal_build_data(), GDALRequestHandler::gdal_build_dds(), GDALRequestHandler::gdal_build_dmr(), GDALRequestHandler::gdal_build_help(), GDALRequestHandler::gdal_build_version(), BESDataHandlerInterface::get_response_object(), HDF4RequestHandler::hdf4_build_das(), HDF4RequestHandler::hdf4_build_data(), HDF4RequestHandler::hdf4_build_data_with_IDs(), HDF4RequestHandler::hdf4_build_dds(), HDF4RequestHandler::hdf4_build_help(), HDF4RequestHandler::hdf4_build_version(), HDF5RequestHandler::hdf5_build_das(), HDF5RequestHandler::hdf5_build_data(), HDF5RequestHandler::hdf5_build_data_with_IDs(), HDF5RequestHandler::hdf5_build_dds(), HDF5RequestHandler::hdf5_build_help(), HDF5RequestHandler::hdf5_build_version(), NCRequestHandler::nc_build_das(), NCRequestHandler::nc_build_data(), NCRequestHandler::nc_build_dds(), NCRequestHandler::nc_build_dmr(), NCRequestHandler::nc_build_help(), NCRequestHandler::nc_build_version(), ncml_module::NCMLRequestHandler::ncml_build_das(), ncml_module::NCMLRequestHandler::ncml_build_data(), ncml_module::NCMLRequestHandler::ncml_build_dds(), ncml_module::NCMLRequestHandler::ncml_build_dmr(), ncml_module::NCMLRequestHandler::ncml_build_help(), and ncml_module::NCMLRequestHandler::ncml_build_vers().
|
virtualinherited |
replaces the current response object with the specified one, returning the current response object
This method is used to replace the response object with a new one, for example if during aggregation a new response object is built from the current response object.
The caller of set_response_object now owns the returned response object. The new response object is now owned by the response object.
| o | new response object used to replace the current one |
Definition at line 59 of file BESResponseHandler.cc.
References BESResponseHandler::_response.
Referenced by agg_util::DDSLoader::loadInto().
|
virtual |
transmit the response object built by the execute command using the specified transmitter object
If a response object was built then transmit it using the send_das method on the transmitter object.
| transmitter | object that knows how to transmit specific basic types |
| dhi | structure that holds the request and response information |
Implements BESResponseHandler.
Definition at line 109 of file BESWWWResponseHandler.cc.
References BESResponseHandler::_response, BESTransmitter::send_response(), and WWW_TRANSMITTER.

|
static |
Definition at line 118 of file BESWWWResponseHandler.cc.
References BESWWWResponseHandler().

|
protectedinherited |
Definition at line 85 of file BESResponseHandler.h.
Referenced by BESResponseHandler::dump(), BESDap4ResponseHandler::execute(), BESStreamResponseHandler::execute(), BESXDResponseHandler::execute(), ShowPathInfoResponseHandler::execute(), BESServicesResponseHandler::execute(), BESProcIdResponseHandler::execute(), BESUsageResponseHandler::execute(), execute(), BESConfigResponseHandler::execute(), BESShowDefsResponseHandler::execute(), BESDMRResponseHandler::execute(), BESStatusResponseHandler::execute(), BESDDSResponseHandler::execute(), BESDASResponseHandler::execute(), BESVersionResponseHandler::execute(), BESDataResponseHandler::execute(), BESDelContainerResponseHandler::execute(), BESShowContextResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDelContainersResponseHandler::execute(), BESShowContainersResponseHandler::execute(), BESHelpResponseHandler::execute(), BESCatalogResponseHandler::execute(), BESSetContextResponseHandler::execute(), BESDelDefResponseHandler::execute(), BESDelDefsResponseHandler::execute(), BESDDXResponseHandler::execute(), BESSetContainerResponseHandler::execute(), BESDefineResponseHandler::execute(), BESResponseHandler::get_response_object(), BESResponseHandler::set_response_object(), BESDap4ResponseHandler::transmit(), BESXDResponseHandler::transmit(), ShowPathInfoResponseHandler::transmit(), BESProcIdResponseHandler::transmit(), transmit(), BESServicesResponseHandler::transmit(), BESUsageResponseHandler::transmit(), BESStatusResponseHandler::transmit(), BESDDSResponseHandler::transmit(), BESConfigResponseHandler::transmit(), BESDMRResponseHandler::transmit(), BESShowDefsResponseHandler::transmit(), BESDASResponseHandler::transmit(), BESVersionResponseHandler::transmit(), BESDataResponseHandler::transmit(), BESDelContainerResponseHandler::transmit(), BESShowContextResponseHandler::transmit(), BESHelpResponseHandler::transmit(), BESDataDDXResponseHandler::transmit(), BESCatalogResponseHandler::transmit(), BESShowContainersResponseHandler::transmit(), BESDelContainersResponseHandler::transmit(), BESSetContextResponseHandler::transmit(), BESDDXResponseHandler::transmit(), BESDelDefsResponseHandler::transmit(), BESDelDefResponseHandler::transmit(), BESSetContainerResponseHandler::transmit(), BESDefineResponseHandler::transmit(), and BESResponseHandler::~BESResponseHandler().
|
protectedinherited |
Definition at line 84 of file BESResponseHandler.h.
Referenced by BESResponseHandler::dump(), BESXDResponseHandler::execute(), BESUsageResponseHandler::execute(), execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), and BESResponseHandler::get_name().