OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
silent informational response object More...
#include <BESDapErrorInfo.h>
Public Member Functions | |
virtual void | add_break (unsigned long num_breaks) |
add a line break to the information More... | |
virtual void | add_data (const string &s) |
add data to the informational object More... | |
virtual void | add_data_from_file (const string &key, const string &name) |
ignore data from a file to the informational object. More... | |
virtual void | add_exception (BESError &e, const string &admin) |
ignore exception data to this informational object. More... | |
virtual void | add_space (unsigned long num_spaces) |
add a space to the informational response More... | |
virtual void | add_tag (const string &tag_name, const string &tag_data, map< string, string > *attrs=0) |
add tagged information to the informational response More... | |
virtual void | begin_response (const string &response_name, BESDataHandlerInterface &dhi) |
begin the informational response More... | |
virtual void | begin_tag (const string &tag_name, map< string, string > *attrs=0) |
begin a tagged part of the information, information to follow More... | |
BESDapErrorInfo (ErrorCode ec, const string &msg) | |
constructs an informational object that doesn't write any output to the stream More... | |
virtual void | dump (ostream &strm) const |
dumps information about this object More... | |
virtual void | end_response () |
virtual void | end_tag (const string &tag_name) |
end a tagged part of the informational response More... | |
virtual bool | is_buffered () |
return whether the information is to be buffered or not. More... | |
virtual void | print (ostream &strm) |
ignore printing the information More... | |
virtual void | transmit (BESTransmitter *transmitter, BESDataHandlerInterface &dhi) |
transmit this informational object More... | |
virtual | ~BESDapErrorInfo () |
Protected Attributes | |
bool | _buffered |
string | _response_name |
bool | _response_started |
ostream * | _strm |
bool | _strm_owned |
stack< string > | _tags |
silent informational response object
This class ignores any data added to an informational object and ignores the print command. Basically, it is silent!
Definition at line 52 of file BESDapErrorInfo.h.
BESDapErrorInfo::BESDapErrorInfo | ( | ErrorCode | ec, |
const string & | msg | ||
) |
constructs an informational object that doesn't write any output to the stream
Definition at line 38 of file BESDapErrorInfo.cc.
|
virtual |
Definition at line 45 of file BESDapErrorInfo.cc.
|
virtual |
add a line break to the information
because this is a silent response, nothing is added
num_breaks | number of line breaks to add |
Implements BESInfo.
Definition at line 129 of file BESDapErrorInfo.cc.
|
virtual |
add data to the informational object
because this is a silent response, nothing is added
s | information to be ignored |
Reimplemented from BESInfo.
Definition at line 107 of file BESDapErrorInfo.cc.
|
virtual |
ignore data from a file to the informational object.
key | Key from the initialization file specifying the file to be |
name | naem information to add to error messages loaded. |
Reimplemented from BESInfo.
Definition at line 140 of file BESDapErrorInfo.cc.
|
virtual |
ignore exception data to this informational object.
e | exception to be added |
admin | The contact information for the person responsible for this error |
Reimplemented from BESInfo.
Definition at line 152 of file BESDapErrorInfo.cc.
|
virtual |
add a space to the informational response
because this is a silent response, nothing is added
num_spaces | number of spaces to add |
Implements BESInfo.
Definition at line 118 of file BESDapErrorInfo.cc.
|
virtual |
add tagged information to the informational response
tag_name | name of the tag to add to the informational response |
tag_data | information describing the tag |
attrs | map of attributes to add to the tag |
Implements BESInfo.
Definition at line 70 of file BESDapErrorInfo.cc.
|
virtual |
begin the informational response
Because this is silent, there is nothing to do
response_name | name of the response represented by the information |
dhi | information about the request and response |
Reimplemented from BESInfo.
Definition at line 57 of file BESDapErrorInfo.cc.
References BESInfo::begin_response().
|
virtual |
begin a tagged part of the information, information to follow
tag_name | name of the tag to begin |
attrs | map of attributes to begin the tag with |
Reimplemented from BESInfo.
Definition at line 82 of file BESDapErrorInfo.cc.
References BESInfo::begin_tag().
|
virtual |
dumps information about this object
Displays the pointer value of this instance and calls dump on the parent class
strm | C++ i/o stream to dump the information to |
Reimplemented from BESInfo.
Definition at line 189 of file BESDapErrorInfo.cc.
References BESInfo::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().
|
virtualinherited |
Reimplemented in BESVersionInfo, BESXMLInfo, and BESHTMLInfo.
Definition at line 131 of file BESInfo.cc.
References BESInfo::_response_started, and BESInfo::_tags.
Referenced by BESXMLInfo::end_response(), BESVersionInfo::end_response(), BESProcIdResponseHandler::execute(), BESServicesResponseHandler::execute(), BESStatusResponseHandler::execute(), BESShowDefsResponseHandler::execute(), BESConfigResponseHandler::execute(), BESShowContextResponseHandler::execute(), BESHelpResponseHandler::execute(), BESShowContainersResponseHandler::execute(), BESCatalogResponseHandler::execute(), and BESExceptionManager::handle_exception().
|
virtual |
end a tagged part of the informational response
If the named tag is not the current tag then an error is thrown.
tag_name | name of the tag to end |
Reimplemented from BESInfo.
Definition at line 95 of file BESDapErrorInfo.cc.
References BESInfo::end_tag().
|
inlinevirtualinherited |
return whether the information is to be buffered or not.
Definition at line 123 of file BESInfo.h.
References BESInfo::_buffered.
Referenced by BESBasicHttpTransmitter::send_html(), BESBasicTransmitter::send_html(), BESBasicTransmitter::send_text(), and BESBasicHttpTransmitter::send_text().
|
virtual |
ignore printing the information
strm | stream to send output to if not ignored. |
Reimplemented from BESInfo.
Definition at line 175 of file BESDapErrorInfo.cc.
|
virtual |
transmit this informational object
transmit this as text to the transmitter
transmitter | The type of transmitter to use to transmit the info |
dhi | information to help with the transmission |
Implements BESInfo.
Definition at line 164 of file BESDapErrorInfo.cc.
References BESTransmitter::send_text().
|
protectedinherited |
Definition at line 73 of file BESInfo.h.
Referenced by BESHTMLInfo::add_data(), BESTextInfo::add_data(), BESInfo::BESInfo(), BESInfo::dump(), BESInfo::is_buffered(), and BESInfo::print().
|
protectedinherited |
Definition at line 77 of file BESInfo.h.
Referenced by BESXMLInfo::add_tag(), BESXMLInfo::begin_response(), BESInfo::begin_response(), BESXMLInfo::begin_tag(), BESInfo::dump(), BESXMLInfo::end_response(), and BESXMLInfo::end_tag().
|
protectedinherited |
Definition at line 74 of file BESInfo.h.
Referenced by BESInfo::begin_response(), BESInfo::dump(), and BESInfo::end_response().
|
protectedinherited |
Definition at line 71 of file BESInfo.h.
Referenced by BESHTMLInfo::add_data(), BESTextInfo::add_data(), BESInfo::BESInfo(), BESXMLInfo::end_tag(), BESInfo::print(), and BESInfo::~BESInfo().
|
protectedinherited |
Definition at line 72 of file BESInfo.h.
Referenced by BESInfo::BESInfo(), and BESInfo::~BESInfo().
|
protectedinherited |
Definition at line 76 of file BESInfo.h.
Referenced by BESInfo::begin_tag(), BESInfo::dump(), BESInfo::end_response(), and BESInfo::end_tag().