bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
ShowBesKeyCommand.h
1// -*- mode: c++; c-basic-offset:4 -*-
2//
3// ShowBesKeyCommand.h
4//
5// This file is part of the BES default command set
6//
7// Copyright (c) 2018 OPeNDAP, Inc
8// Author: Nathan Potter <ndp@opendap.org>
9//
10// This library is free software; you can redistribute it and/or
11// modify it under the terms of the GNU Lesser General Public
12// License as published by the Free Software Foundation; either
13// version 2.1 of the License, or (at your option) any later version.
14//
15// This library is distributed in the hope that it will be useful,
16// but WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18// Lesser General Public License for more details.
19//
20// You should have received a copy of the GNU Lesser General Public
21// License along with this library; if not, write to the Free Software
22// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23//
24// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25
26
27#ifndef A_GetBesCommand_h
28#define A_GetBesCommand_h 1
29
30#include "BESXMLCommand.h"
31#include "BESDataHandlerInterface.h"
32
33#define SHOW_BES_KEY_RESPONSE_STR "showBesKey"
34#define SHOW_BES_KEY_RESPONSE "show.besKey"
35#define BES_KEY_RESPONSE "BesKey"
36#define KEY "key"
37
38#define SBK_DEBUG_KEY "show-bes-key"
39
40class ShowBesKeyCommand: public BESXMLCommand {
41public:
42 ShowBesKeyCommand(const BESDataHandlerInterface &base_dhi);
43 virtual ~ShowBesKeyCommand()
44 {
45 }
46
47 virtual void parse_request(xmlNode *node);
48
49 virtual bool has_response()
50 {
51 return true;
52 }
53
54 virtual void dump(std::ostream &strm) const;
55
56 static BESXMLCommand * CommandBuilder(const BESDataHandlerInterface &base_dhi);
57};
58
59#endif // A_GetBesCommand_h
Structure storing information used by the BES to handle the request.
Base class for the BES's commands.
BESXMLCommand(const BESDataHandlerInterface &base_dhi)
Creates a BESXMLCommand document given a base data handler interface object.
virtual void parse_request(xmlNode *node)
parse a show command. No properties or children elements
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual bool has_response()
Does this command return a response to the client?