|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
BESTransmitter class named "netcdf" that transmits an OPeNDAP data object as a netcdf file. More...
#include <FONcTransmitter.h>


Public Member Functions | |
| virtual bool | add_method (string method_name, p_transmitter trans_method) |
| virtual void | dump (ostream &strm) const |
| dumps information about this object More... | |
| virtual p_transmitter | find_method (string method_name) |
| FONcTransmitter () | |
| Construct the FONcTransmitter, adding it with name netcdf to be able to transmit a data response. More... | |
| virtual bool | remove_method (string method_name) |
| virtual void | send_html (BESInfo &info, BESDataHandlerInterface &dhi) |
| virtual void | send_response (const string &method, BESResponseObject *obj, BESDataHandlerInterface &dhi) |
| virtual void | send_text (BESInfo &info, BESDataHandlerInterface &dhi) |
| virtual | ~FONcTransmitter () |
Static Public Member Functions | |
| static void | send_data (BESResponseObject *obj, BESDataHandlerInterface &dhi) |
| The static method registered to transmit OPeNDAP data objects as a netcdf file. More... | |
BESTransmitter class named "netcdf" that transmits an OPeNDAP data object as a netcdf file.
The FONcTransmitter transforms an OPeNDAP DataDDS object into a netcdf file and streams the new (temporary) netcdf file back to the client.
Definition at line 53 of file FONcTransmitter.h.
| FONcTransmitter::FONcTransmitter | ( | ) |
Construct the FONcTransmitter, adding it with name netcdf to be able to transmit a data response.
The transmitter is created to add the ability to return OPeNDAP data objects (DataDDS) as a netcdf file.
The OPeNDAP data object is written to a netcdf file locally in a temporary directory specified by the BES configuration parameter FONc.Tempdir. If this variable is not found or is not set then it defaults to the macro definition FONC_TEMP_DIR.
Definition at line 115 of file FONcTransmitter.cc.
References BESTransmitter::add_method(), DATA_SERVICE, FONC_TEMP_DIR, BESKeys::get_value(), send_data(), and TheBESKeys::TheKeys().

|
inlinevirtual |
Definition at line 61 of file FONcTransmitter.h.
|
virtualinherited |
Definition at line 36 of file BESTransmitter.cc.
Referenced by BESAsciiTransmit::BESAsciiTransmit(), BESDapTransmit::BESDapTransmit(), FoDapJsonTransmitter::FoDapJsonTransmitter(), FoInstanceJsonTransmitter::FoInstanceJsonTransmitter(), FONcTransmitter(), GeoTiffTransmitter::GeoTiffTransmitter(), BESXDModule::initialize(), BESUsageModule::initialize(), BESWWWModule::initialize(), JPEG2000Transmitter::JPEG2000Transmitter(), and W10nJsonTransmitter::W10nJsonTransmitter().
|
virtualinherited |
dumps information about this object
Displays the pointer value of this instance
| strm | C++ i/o stream to dump the information to |
Reimplemented from BESTransmitter.
Reimplemented in BESBasicHttpTransmitter.
Definition at line 72 of file BESBasicTransmitter.cc.
References BESTransmitter::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
Referenced by BESBasicHttpTransmitter::dump().

|
virtualinherited |
Definition at line 58 of file BESTransmitter.cc.
Referenced by BESTransmitter::send_response().
|
virtualinherited |
Definition at line 47 of file BESTransmitter.cc.
Referenced by BESXDModule::terminate(), BESUsageModule::terminate(), BESWWWModule::terminate(), and BESDapTransmit::~BESDapTransmit().
|
static |
The static method registered to transmit OPeNDAP data objects as a netcdf file.
This function takes the OPeNDAP DataDDS object, reads in the data (can be used with any data handler), transforms the data into a netcdf file, and streams back that netcdf file back to the requester using the stream specified in the BESDataHandlerInterface.
| obj | The BESResponseObject containing the OPeNDAP DataDDS object |
| dhi | BESDataHandlerInterface containing information about the request and response |
| BESInternalError | if the response is not an OPeNDAP DataDDS or if there are any problems reading the data, writing to a netcdf file, or streaming the netcdf file |
Definition at line 150 of file FONcTransmitter.cc.
References BESDEBUG, BESDataHandlerInterface::data, BESDataDDSResponse::get_ce(), BESDataDDSResponse::get_dds(), BESDataHandlerInterface::get_output_stream(), POST_CONSTRAINT, RETURN_CMD, BESDataDDSResponse::set_dds(), and FONcTransform::transform().
Referenced by FONcTransmitter().

|
virtualinherited |
Implements BESTransmitter.
Reimplemented in BESBasicHttpTransmitter.
Definition at line 53 of file BESBasicTransmitter.cc.
References BESContextManager::get_context(), BESDataHandlerInterface::get_output_stream(), BESInfo::is_buffered(), BESInfo::print(), BESUtil::set_mime_html(), and BESContextManager::TheManager().
Referenced by BESBasicHttpTransmitter::send_html().

|
virtualinherited |
Definition at line 69 of file BESTransmitter.cc.
References BESTransmitter::find_method().
Referenced by BESDap4ResponseHandler::transmit(), BESXDResponseHandler::transmit(), BESUsageResponseHandler::transmit(), BESWWWResponseHandler::transmit(), BESDDSResponseHandler::transmit(), BESDMRResponseHandler::transmit(), BESDASResponseHandler::transmit(), BESDataResponseHandler::transmit(), BESDataDDXResponseHandler::transmit(), and BESDDXResponseHandler::transmit().

|
virtualinherited |
Implements BESTransmitter.
Reimplemented in BESBasicHttpTransmitter.
Definition at line 40 of file BESBasicTransmitter.cc.
References BESContextManager::get_context(), BESDataHandlerInterface::get_output_stream(), BESInfo::is_buffered(), BESInfo::print(), BESUtil::set_mime_text(), and BESContextManager::TheManager().
Referenced by BESBasicHttpTransmitter::send_text().
