mumsi/IncomingConnectionValidator.hpp
2015-11-09 01:42:04 +01:00

21 lines
459 B
C++

#pragma once
#include <boost/noncopyable.hpp>
#include <log4cpp/Category.hh>
#include <string>
#include <regex>
namespace sip {
class IncomingConnectionValidator : boost::noncopyable {
public:
IncomingConnectionValidator(std::string validUriExpression);
bool validateUri(std::string uri);
private:
log4cpp::Category &logger;
std::string validUriExpression;
std::vector<std::regex> uriRegexVec;
};
}