33 #include "../usage/BESUsageResponseHandler.h" 36 #include "../usage/BESUsage.h" 37 #include "../usage/BESUsageNames.h" 38 #include "../usage/BESUsageTransmit.h" 39 #include "BESRequestHandlerList.h" 40 #include "BESDapNames.h" 41 #include "BESDASResponse.h" 42 #include "BESDDSResponse.h" 43 #include "BESTransmitter.h" 47 BESUsageResponseHandler::BESUsageResponseHandler(
const string &name )
52 BESUsageResponseHandler::~BESUsageResponseHandler( )
75 dhi.action_name = Usage_RESPONSE_STR ;
80 DDS *dds =
new DDS( NULL,
"virtual" ) ;
82 d_response_object = bdds ;
83 d_response_name = DDS_RESPONSE ;
84 dhi.
action = DDS_RESPONSE ;
90 d_response_object = bdas ;
91 d_response_name = DAS_RESPONSE ;
92 dhi.
action = DAS_RESPONSE ;
96 d_response_object = usage ;
97 dhi.
action = Usage_RESPONSE ;
116 if( d_response_object )
118 transmitter->send_response( Usage_TRANSMITTER, d_response_object, dhi ) ;
123 BESUsageResponseHandler::UsageResponseBuilder(
const string &handler_name )
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
Holds a DDS object within the BES.
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get Usage for <def_name>;' by executing the request for each container in the s...
response handler that builds an OPeNDAP Usage response object
handler object that knows how to create a specific response object
virtual void execute_each(BESDataHandlerInterface &dhi)
for each container in the given data handler interface, execute the given request
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.
Represents an OPeNDAP DAS DAP2 data object within the BES.
string action
the response object requested, e.g. das, dds