mumsi/IncomingConnectionValidator.hpp

21 lines
459 B
C++
Raw Normal View History

2015-11-09 00:51:51 +01:00
#pragma once
#include <boost/noncopyable.hpp>
#include <log4cpp/Category.hh>
#include <string>
2015-11-09 01:42:04 +01:00
#include <regex>
2015-11-09 00:51:51 +01:00
namespace sip {
class IncomingConnectionValidator : boost::noncopyable {
public:
IncomingConnectionValidator(std::string validUriExpression);
bool validateUri(std::string uri);
private:
log4cpp::Category &logger;
std::string validUriExpression;
2015-11-09 01:42:04 +01:00
std::vector<std::regex> uriRegexVec;
2015-11-09 00:51:51 +01:00
};
}