33 #include "BESDapResponse.h" 34 #include "BESContextManager.h" 35 #include "BESConstraintFuncs.h" 36 #include "BESDataNames.h" 61 string context = BESContextManager::TheManager()->
get_context(
"dap_explicit_containers", found);
64 d_explicit_containers =
true;
65 else if (context ==
"no")
66 d_explicit_containers =
false;
68 throw BESError(
"dap_explicit_containers must be yes or no",
69 BES_SYNTAX_USER_ERROR, __FILE__, __LINE__);
73 context = BESContextManager::TheManager()->
get_context(
"dap_format", found);
75 if (context ==
"dap2")
76 d_explicit_containers =
false;
78 d_explicit_containers =
true;
82 context = BESContextManager::TheManager()->
get_context(
"xdap_accept", found);
84 d_dap_client_protocol = context;
86 context = BESContextManager::TheManager()->
get_context(
"xml:base", found);
88 d_request_xml_base = context;
101 return !d_explicit_containers;
104 string context = BESContextManager::TheManager()->
get_context(
105 "dap_format", found);
106 if (found && (context ==
"dap2" || context ==
"2.0")) {
134 BESConstraintFuncs::post_append( dhi ) ;
187 strm << BESIndent::LMarg <<
"BESDapResponse::dump - (" 188 << (
void *)
this <<
")" << endl ;
190 strm << BESIndent::LMarg <<
"d_explicit_containers: " << d_explicit_containers << endl;
191 strm << BESIndent::LMarg <<
"d_dap_client_protocol: " << d_dap_client_protocol << endl;
192 BESIndent::UnIndent();
194 BESIndent::UnIndent();
string get_constraint() const
retrieve the constraint expression for this container
virtual void dump(ostream &strm) const
dumps information about this object
string get_dap4_function() 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
string get_dap4_constraint() const
retrieve the constraint expression for this container
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.
BESContainer * container
pointer to current container in this interface