WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
webdriver::AccessValidator Class Reference

#include <webdriver_access.h>

Public Member Functions

 AccessValidator ()
 
 ~AccessValidator ()
 
void setWhiteList (FilePath &xmlPath)
 
bool isAllowed (const long &remote_ip, const std::string &url, const std::string &method)
 

Detailed Description

Provides IP/command whitelist functionality.

Constructor & Destructor Documentation

webdriver::AccessValidator::AccessValidator ( )
webdriver::AccessValidator::~AccessValidator ( )

Member Function Documentation

bool webdriver::AccessValidator::isAllowed ( const long &  remote_ip,
const std::string &  url,
const std::string &  method 
)

Check if given command is allowed for this IP

Parameters
remote_iporigin IP to check
urlcommand url
methodcommand method
void webdriver::AccessValidator::setWhiteList ( FilePath &  xmlPath)

Parse xml file with whitelist config

Parameters
xmlPathpath to whitelist xml-file

The documentation for this class was generated from the following file: