12#include <boost/algorithm/string.hpp>
24 : tag_(util::str::trim(tag)) {
26 isc_throw(BadValue,
"server-tag must not be empty");
28 }
else if (tag_.length() > 256) {
29 isc_throw(BadValue,
"server-tag must not be longer than 256 characters");
32 boost::algorithm::to_lower(tag_);
48 os << server_tag.
get();
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
static std::string ALL
Server tag for all servers as text.
bool amAll() const
Checks if the server tag is set to "all servers".
std::string get() const
Returns server tag as string.
ServerTag()
Default constructor.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
std::ostream & operator<<(std::ostream &out, const Element::Position &pos)
Insert Element::Position as a string into stream.
Defines the logger used by the top-level component of kea-lfc.