33#include "../usage/BESUsageResponseHandler.h"
35#include <libdap/DDS.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"
47BESUsageResponseHandler::BESUsageResponseHandler(
const string &name )
52BESUsageResponseHandler::~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 ;
85 BESRequestHandlerList::TheList()->execute_each( dhi ) ;
90 d_response_object = bdas ;
91 d_response_name = DAS_RESPONSE ;
92 dhi.
action = DAS_RESPONSE ;
93 BESRequestHandlerList::TheList()->execute_each( dhi ) ;
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 ) ;
123BESUsageResponseHandler::UsageResponseBuilder(
const string &handler_name )
Represents an OPeNDAP DAS DAP2 data object within the BES.
Holds a DDS object within the BES.
Structure storing information used by the BES to handle the request.
std::string action
the response object requested, e.g. das, dds
handler object that knows how to create a specific response object
response handler that builds an OPeNDAP Usage response object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get Usage for <def_name>;' by executing the request for each container in the s...
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
container for a DAS and DDS needed to write out the usage information for a dataset.