mumsi/IncomingConnectionValidator.hpp

22 lines
472 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>
#include <boost/regex.hpp>
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;
std::vector<boost::regex> uriRegexVec;
2015-11-09 00:51:51 +01:00
};
}