33 #include "BESDapResponse.h"
34 #include "BESContextManager.h"
35 #include "BESConstraintFuncs.h"
36 #include "BESDataNames.h"
64 string context = BESContextManager::TheManager()->
get_context(
"dap_explicit_containers", found);
67 d_explicit_containers =
true;
68 else if (context ==
"no")
69 d_explicit_containers =
false;
71 throw BESError(
"dap_explicit_containers must be yes or no",
72 BES_SYNTAX_USER_ERROR, __FILE__, __LINE__);
76 context = BESContextManager::TheManager()->
get_context(
"dap_format", found);
78 if (context ==
"dap2")
79 d_explicit_containers =
false;
81 d_explicit_containers =
true;
85 context = BESContextManager::TheManager()->
get_context(
"xdap_accept", found);
86 if (found) d_dap_client_protocol = context;
88 context = BESContextManager::TheManager()->
get_context(
"xml:base", found);
89 if (found) d_request_xml_base = context;
102 return !d_explicit_containers;
122 BESConstraintFuncs::post_append(dhi);
170 strm << BESIndent::LMarg <<
"BESDapResponse::dump - (" << (
void *)
this <<
")" << endl;
172 strm << BESIndent::LMarg <<
"d_explicit_containers: " << d_explicit_containers << endl;
173 strm << BESIndent::LMarg <<
"d_dap_client_protocol: " << d_dap_client_protocol << endl;
174 BESIndent::UnIndent();
176 BESIndent::UnIndent();
std::string get_dap4_constraint() const
retrieve the constraint expression for this container
std::string get_dap4_function() const
retrieve the constraint expression for this container
std::string get_constraint() const
retrieve the constraint expression for this container
virtual std::string get_context(const std::string &name, bool &found)
retrieve the value of the specified context from the BES
void read_contexts()
Extract the dap protocol from the setConext information.
virtual void set_dap4_function(BESDataHandlerInterface &dhi)
set the constraint depending on the context
virtual void set_dap4_constraint(BESDataHandlerInterface &dhi)
set the constraint depending on the context
virtual void set_constraint(BESDataHandlerInterface &dhi)
set the constraint depending on the context
virtual void dump(std::ostream &strm) const
dumps information about this object
bool is_dap2()
See get_explicit_containers()
Structure storing information used by the BES to handle the request.
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
BESContainer * container
pointer to current container in this interface
Abstract exception class for the BES with basic string message.