OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
Represents an OPeNDAP DDS DAP2 data object within the BES. More...
#include <BESDDSResponse.h>
Public Member Functions | |
BESDDSResponse (DDS *dds) | |
virtual void | clear_container () |
clear the container in the DAP response object More... | |
virtual void | dump (ostream &strm) const |
dumps information about this object set container in catalog values avhrr, /data/ff/1998.6.avhrr.dat; More... | |
ConstraintEvaluator & | get_ce () |
string | get_dap_client_protocol () const |
Return the dap version string sent by the client (e.g., the OLFS) More... | |
DDS * | get_dds () |
bool | get_explicit_containers () const |
Should containers be explicitly represented in the DD* responses? More... | |
string | get_request_xml_base () const |
Return the xml:base URL for this request. More... | |
virtual void | set_constraint (BESDataHandlerInterface &dhi) |
set the constraint depending on the context More... | |
virtual void | set_container (const string &cn) |
set the container in the DAP response object More... | |
void | set_dds (DDS *ddsIn) |
Set the response object's DDS. More... | |
virtual | ~BESDDSResponse () |
Protected Member Functions | |
bool | is_dap2 () |
See get_explicit_containers() More... | |
void | read_contexts () |
Extract the dap protocol from the setConext information. More... | |
Represents an OPeNDAP DDS DAP2 data object within the BES.
Definition at line 44 of file BESDDSResponse.h.
|
inline |
Definition at line 49 of file BESDDSResponse.h.
|
virtual |
Definition at line 35 of file BESDDSResponse.cc.
|
virtual |
clear the container in the DAP response object
Implements BESDapResponse.
Definition at line 60 of file BESDDSResponse.cc.
Referenced by DapRequestHandler::dap_build_dds().
|
virtual |
dumps information about this object set container in catalog values avhrr, /data/ff/1998.6.avhrr.dat;
Displays the pointer value of this instance along with the dds object created
strm | C++ i/o stream to dump the information to |
Reimplemented from BESDapResponse.
Definition at line 77 of file BESDDSResponse.cc.
References BESIndent::GetIndent(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
|
inline |
Definition at line 70 of file BESDDSResponse.h.
|
inlineinherited |
Return the dap version string sent by the client (e.g., the OLFS)
Definition at line 71 of file BESDapResponse.h.
Referenced by BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESDataDDXResponseHandler::execute(), and BESDDXResponseHandler::execute().
|
inline |
Definition at line 66 of file BESDDSResponse.h.
Referenced by DapRequestHandler::dap_build_dds().
|
inlineinherited |
Should containers be explicitly represented in the DD* responses?
Definition at line 74 of file BESDapResponse.h.
Referenced by BESDASResponse::set_container(), BESDataDDSResponse::set_container(), and set_container().
|
inlineinherited |
Return the xml:base URL for this request.
Definition at line 77 of file BESDapResponse.h.
Referenced by BESDataDDXResponseHandler::execute(), and BESDDXResponseHandler::execute().
|
protectedinherited |
Definition at line 99 of file BESDapResponse.cc.
References BESContextManager::get_context(), and BESContextManager::TheManager().
Referenced by BESDapResponse::set_constraint().
|
protectedinherited |
Extract the dap protocol from the setConext information.
This method checks three contexts: dap_explicit_containers, dap_format and xdap_accept.
If given, the boolean value of dap_explicit_containers is used. If that's not given then look for dap_format and if that's not given default to true. The OLFS should always send this to make Hyrax work the way DAP clients expect.
xdap_accept is the value of the DAP that clients can grok. It defaults to "2.0"
Definition at line 56 of file BESDapResponse.cc.
References BES_SYNTAX_USER_ERROR, BESContextManager::get_context(), and BESContextManager::TheManager().
|
virtualinherited |
set the constraint depending on the context
If the context is dap2 then the constraint will be the constraint of the current container. If not dap2 and we have multiple containers then the constraint of the current container must be added to the current post constraint
dhi | The BESDataHandlerInterface of the request. THis holds the current container and the current post constraint |
Definition at line 124 of file BESDapResponse.cc.
References BESDataHandlerInterface::container, BESDataHandlerInterface::data, BESContainer::get_constraint(), BESDapResponse::is_dap2(), BESConstraintFuncs::post_append(), and POST_CONSTRAINT.
Referenced by DapRequestHandler::dap_build_data(), and DapRequestHandler::dap_build_dds().
|
virtual |
set the container in the DAP response object
cn | name of the current container being operated on |
Implements BESDapResponse.
Definition at line 49 of file BESDDSResponse.cc.
References BESDapResponse::get_explicit_containers().
Referenced by DapRequestHandler::dap_build_dds().
|
inline |
Set the response object's DDS.
The caller should probably free the existing DDS object before calling this method.
Definition at line 64 of file BESDDSResponse.h.