bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
Set a number of context name-value pairs at once. More...
#include <SetContextsResponseHandler.h>
Public Member Functions | |
virtual void | dump (std::ostream &strm) const |
dumps information about this object | |
virtual void | execute (BESDataHandlerInterface &dhi) |
Set multiple contexts in the BES's Context Manager. | |
virtual BESResponseObject * | get_response_object () |
return the current response object | |
virtual BESResponseObject * | set_response_object (BESResponseObject *o) |
replaces the current response object with the specified one, returning the current response object | |
SetContextsResponseHandler (const std::string &name) | |
virtual void | transmit (BESTransmitter *transmitter, BESDataHandlerInterface &dhi) |
For the setContexts command, this is a no-op. | |
Static Public Member Functions | |
static BESResponseHandler * | SetContextsResponseBuilder (const std::string &name) |
Protected Attributes | |
std::string | d_annotation_service_url |
std::string | d_response_name |
BESResponseObject * | d_response_object = nullptr |
Set a number of context name-value pairs at once.
Given that the XMLSetContextsCommand <setContexts> was found, perform that action. A number of BES context name-value pairs are encoded in the DHI.data[] map (a simple associative array that maps one string value to another). Read those name-value pairs and add them to the BES's Context data store.
This ResponseHandler instance will not transmit anything back to the BES's client unless there is an error.
Definition at line 47 of file SetContextsResponseHandler.h.
|
inline |
Definition at line 50 of file SetContextsResponseHandler.h.
|
inlinevirtual |
Definition at line 51 of file SetContextsResponseHandler.h.
|
virtual |
dumps information about this object
Displays the pointer value of this instance
strm | C++ i/o stream to dump the information to |
Reimplemented from BESResponseHandler.
Definition at line 109 of file SetContextsResponseHandler.cc.
|
virtual |
Set multiple contexts in the BES's Context Manager.
dhi | structure that holds request and response information |
BESSyntaxUserError | if no context name was given object |
Implements BESResponseHandler.
Definition at line 53 of file SetContextsResponseHandler.cc.
|
virtualinherited |
return the current response object
Returns the current response object, null if one has not yet been created. The response handler maintains ownership of the response object.
Definition at line 62 of file BESResponseHandler.cc.
|
virtualinherited |
replaces the current response object with the specified one, returning the current response object
This method is used to replace the response object with a new one, for example if during aggregation a new response object is built from the current response object.
The caller of set_response_object now owns the returned response object. The new response object is now owned by the response object.
o | new response object used to replace the current one |
Definition at line 68 of file BESResponseHandler.cc.
|
static |
Definition at line 118 of file SetContextsResponseHandler.cc.
|
virtual |
For the setContexts command, this is a no-op.
transmitter | object that knows how to transmit specific basic types |
dhi | structure that holds the request and response information |
Implements BESResponseHandler.
Definition at line 99 of file SetContextsResponseHandler.cc.
|
protectedinherited |
Definition at line 82 of file BESResponseHandler.h.
|
protectedinherited |
Definition at line 79 of file BESResponseHandler.h.
|
protectedinherited |
Definition at line 80 of file BESResponseHandler.h.