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