OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
Structure storing information used by the BES to handle the request. More...
#include <BESDataHandlerInterface.h>
Public Types | |
typedef map< string, string > ::const_iterator | data_citer |
Public Member Functions | |
BESDataHandlerInterface () | |
BESDataHandlerInterface (const BESDataHandlerInterface &from) | |
void | clean () |
clean up any information created within this data handler interface More... | |
const map< string, string > & | data_c () const |
void | dump (ostream &strm) const |
dumps information about this object More... | |
void | first_container () |
set the container pointer to the first container in the containers list More... | |
ostream & | get_output_stream () |
BESResponseObject * | get_response_object () |
returns the response object using the response handler More... | |
void | make_copy (const BESDataHandlerInterface ©_from) |
deprecated More... | |
void | next_container () |
set the container pointer to the next * container in the list, null if at the end or no containers in list More... | |
BESDataHandlerInterface & | operator= (const BESDataHandlerInterface &rhs) |
void | set_output_stream (ostream *strm) |
Public Attributes | |
string | action |
the response object requested, e.g. More... | |
string | action_name |
BESContainer * | container |
pointer to current container in this interface More... | |
list< BESContainer * > | containers |
list< BESContainer * >::iterator | containers_iterator |
map< string, string > | data |
the map of string data that will be required for the current request. More... | |
BESInfo * | error_info |
error information object More... | |
bool | executed |
BESResponseHandler * | response_handler |
string | transmit_protocol |
request protocol, such as HTTP More... | |
Structure storing information used by the BES to handle the request.
This information is used throughout the BES framework to handle the request and to also store information for logging and reporting.
Definition at line 60 of file BESDataHandlerInterface.h.
typedef map<string, string>::const_iterator BESDataHandlerInterface::data_citer |
Definition at line 156 of file BESDataHandlerInterface.h.
|
inline |
Definition at line 70 of file BESDataHandlerInterface.h.
BESDataHandlerInterface::BESDataHandlerInterface | ( | const BESDataHandlerInterface & | from | ) |
Definition at line 106 of file BESDataHandlerInterface.cc.
void BESDataHandlerInterface::clean | ( | ) |
clean up any information created within this data handler interface
It is the job of the BESDataHandlerInterface to clean up the response handler
Definition at line 130 of file BESDataHandlerInterface.cc.
References response_handler.
Referenced by BESInterface::clean().
|
inline |
Definition at line 151 of file BESDataHandlerInterface.h.
References data.
|
virtual |
dumps information about this object
Displays the pointer value of this instance along with information about each of the data members held
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 163 of file BESDataHandlerInterface.cc.
References action, action_name, container, containers, data, BESInfo::dump(), BESResponseHandler::dump(), BESContainer::dump(), error_info, BESIndent::Indent(), BESIndent::LMarg(), response_handler, transmit_protocol, and BESIndent::UnIndent().
Referenced by BESInterface::dump().
|
inline |
set the container pointer to the first container in the containers list
Definition at line 117 of file BESDataHandlerInterface.h.
References container, containers, and containers_iterator.
Referenced by BESInterface::end_request(), BESStreamResponseHandler::execute(), BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), BESDefineResponseHandler::execute(), BESRequestHandlerList::execute_each(), and BESRequestHandlerList::execute_once().
|
inline |
Definition at line 98 of file BESDataHandlerInterface.h.
Referenced by BESStreamResponseHandler::execute(), BESBasicTransmitter::send_html(), BESBasicHttpTransmitter::send_html(), BESBasicTransmitter::send_text(), and BESBasicHttpTransmitter::send_text().
BESResponseObject * BESDataHandlerInterface::get_response_object | ( | ) |
returns the response object using the response handler
If the response handler is set for this request then return the response object for the request using that response handler
Definition at line 146 of file BESDataHandlerInterface.cc.
References BESResponseHandler::get_response_object(), and response_handler.
void BESDataHandlerInterface::make_copy | ( | const BESDataHandlerInterface & | copy_from | ) |
deprecated
make a copy of only some data from specified object
makes a copy of only some of the data members in a BESDataHandlerInterface. The container list and response handler should not be copied. Each BESDataHandlerInterface should represent a request/response, so each one should have it's own response handler.
copy_from | object to copy information from |
Definition at line 54 of file BESDataHandlerInterface.cc.
References data, and transmit_protocol.
Referenced by BESXMLCommand::BESXMLCommand().
|
inline |
set the container pointer to the next * container in the list, null if at the end or no containers in list
Definition at line 128 of file BESDataHandlerInterface.h.
References container, containers, and containers_iterator.
Referenced by BESInterface::end_request(), BESDefineResponseHandler::execute(), and BESRequestHandlerList::execute_each().
BESDataHandlerInterface & BESDataHandlerInterface::operator= | ( | const BESDataHandlerInterface & | rhs | ) |
Definition at line 112 of file BESDataHandlerInterface.cc.
|
inline |
Definition at line 89 of file BESDataHandlerInterface.h.
Referenced by BESInterface::execute_request().
string BESDataHandlerInterface::action |
the response object requested, e.g.
das, dds
Definition at line 139 of file BESDataHandlerInterface.h.
Referenced by dump(), BESShowErrorResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), BESRequestHandlerList::execute_all(), BESRequestHandlerList::execute_current(), BESInterface::execute_data_request_plan(), BESXMLGetCommand::parse_basic_get(), BESXMLDeleteContainersCommand::parse_request(), BESXMLDeleteDefinitionsCommand::parse_request(), BESXMLSetContainerCommand::parse_request(), BESXMLCatalogCommand::parse_request(), BESXMLShowCommand::parse_request(), BESXMLShowErrorCommand::parse_request(), BESXMLSetContextCommand::parse_request(), BESXMLDeleteContainerCommand::parse_request(), BESXMLDeleteDefinitionCommand::parse_request(), BESXMLDefineCommand::parse_request(), and BESXMLCommand::set_response().
string BESDataHandlerInterface::action_name |
Definition at line 140 of file BESDataHandlerInterface.h.
Referenced by dump(), BESProcIdResponseHandler::execute(), BESServicesResponseHandler::execute(), BESConfigResponseHandler::execute(), BESShowDefsResponseHandler::execute(), BESStatusResponseHandler::execute(), BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESVersionResponseHandler::execute(), BESDASResponseHandler::execute(), BESDelContainerResponseHandler::execute(), BESShowContextResponseHandler::execute(), BESShowContainersResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESCatalogResponseHandler::execute(), BESDelContainersResponseHandler::execute(), BESHelpResponseHandler::execute(), BESSetContextResponseHandler::execute(), BESDDXResponseHandler::execute(), BESDelDefResponseHandler::execute(), BESDelDefsResponseHandler::execute(), BESSetContainerResponseHandler::execute(), BESDefineResponseHandler::execute(), and BESExceptionManager::handle_exception().
BESContainer* BESDataHandlerInterface::container |
pointer to current container in this interface
Definition at line 113 of file BESDataHandlerInterface.h.
Referenced by DapRequestHandler::dap_build_das(), DapRequestHandler::dap_build_data(), DapRequestHandler::dap_build_dds(), dump(), BESInterface::end_request(), BESStreamResponseHandler::execute(), BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), BESDefineResponseHandler::execute(), BESRequestHandlerList::execute_current(), BESRequestHandlerList::execute_each(), first_container(), next_container(), BESConstraintFuncs::post_append(), and BESDapResponse::set_constraint().
list<BESContainer *> BESDataHandlerInterface::containers |
Definition at line 108 of file BESDataHandlerInterface.h.
Referenced by dump(), BESStreamResponseHandler::execute(), first_container(), next_container(), BESXMLGetCommand::prep_request(), and BESXMLDefineCommand::prep_request().
list<BESContainer *>::iterator BESDataHandlerInterface::containers_iterator |
Definition at line 109 of file BESDataHandlerInterface.h.
Referenced by first_container(), and next_container().
map<string, string> BESDataHandlerInterface::data |
the map of string data that will be required for the current request.
Definition at line 150 of file BESDataHandlerInterface.h.
Referenced by BESXMLInfo::begin_response(), BESXMLInterface::BESXMLInterface(), BESXMLInterface::build_data_request_plan(), BESBasicInterface::build_data_request_plan(), BESBasicInterface::clean(), data_c(), dump(), BESInterface::end_request(), BESShowErrorResponseHandler::execute(), BESDelContainerResponseHandler::execute(), BESDelContainersResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESCatalogResponseHandler::execute(), BESDelDefResponseHandler::execute(), BESDelDefsResponseHandler::execute(), BESSetContextResponseHandler::execute(), BESSetContainerResponseHandler::execute(), BESDefineResponseHandler::execute(), BESRequestHandlerList::execute_current(), BESBasicInterface::execute_data_request_plan(), BESInterface::execute_data_request_plan(), BESInterface::execute_request(), BESInterface::initialize(), BESBasicInterface::invoke_aggregation(), BESInterface::invoke_aggregation(), BESBasicInterface::log_status(), make_copy(), BESXMLGetCommand::parse_basic_get(), BESXMLSetContainerCommand::parse_request(), BESXMLDeleteContainerCommand::parse_request(), BESXMLDeleteContainersCommand::parse_request(), BESXMLDeleteDefinitionsCommand::parse_request(), BESXMLCatalogCommand::parse_request(), BESXMLShowErrorCommand::parse_request(), BESXMLSetContextCommand::parse_request(), BESXMLDeleteDefinitionCommand::parse_request(), BESXMLDefineCommand::parse_request(), BESConstraintFuncs::post_append(), BESXMLGetDataDDXCommand::prep_request(), BESXMLGetCommand::prep_request(), BESInterface::report_request(), BESDapResponse::set_constraint(), BESXMLCommand::set_response(), BESXMLInterface::transmit_data(), BESBasicInterface::transmit_data(), and BESInterface::transmit_data().
BESInfo* BESDataHandlerInterface::error_info |
error information object
Definition at line 160 of file BESDataHandlerInterface.h.
Referenced by dump(), BESInterface::finish(), BESInterface::finish_with_error(), BESExceptionManager::handle_exception(), BESDapError::handleException(), BESBasicInterface::log_status(), and BESInterface::transmit_data().
bool BESDataHandlerInterface::executed |
Definition at line 141 of file BESDataHandlerInterface.h.
Referenced by BESInterface::execute_request().
BESResponseHandler* BESDataHandlerInterface::response_handler |
Definition at line 105 of file BESDataHandlerInterface.h.
Referenced by clean(), DapRequestHandler::dap_build_das(), DapRequestHandler::dap_build_data(), DapRequestHandler::dap_build_dds(), DapRequestHandler::dap_build_help(), BESDapRequestHandler::dap_build_help(), DapRequestHandler::dap_build_vers(), BESDapRequestHandler::dap_build_version(), dump(), BESInterface::execute_data_request_plan(), get_response_object(), BESXMLCommand::set_response(), and BESInterface::transmit_data().
string BESDataHandlerInterface::transmit_protocol |
request protocol, such as HTTP
Definition at line 145 of file BESDataHandlerInterface.h.
Referenced by dump(), and make_copy().