IncomingConnectionValidator.hpp 472 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <boost/noncopyable.hpp>
  3. #include <log4cpp/Category.hh>
  4. #include <string>
  5. #include <boost/regex.hpp>
  6. namespace sip {
  7. class IncomingConnectionValidator : boost::noncopyable {
  8. public:
  9. IncomingConnectionValidator(std::string validUriExpression);
  10. bool validateUri(std::string uri);
  11. private:
  12. log4cpp::Category &logger;
  13. std::string validUriExpression;
  14. std::vector<boost::regex> uriRegexVec;
  15. };
  16. }