dca_interface
6.3.4
|
#include <wac_classifier.h>
Defintion of the WacClassifier class.
The classfier takes a WacInputData object and performs a classification with the given HTTP request, URL and HTTP response data.
The result of the classification will be stored in the WacClassificationResult object and the overall success is returned in the dca::FunctionResult (success or failure and details).
A WacClassifier can be obtained from a WacClassification instance.
Definition at line 33 of file wac_classifier.h.
Public Member Functions | |
dca::FunctionResult | classify (const WacInputData &input, WacClassificationResult &result) const |
Classification function that takes the given input and return its results (if any) in the provided result output object. More... | |
dca::LogLevel | setLogLevel (dca::LogLevel newLevel) |
Changes the loglevel of the class and returns the previously used loglevel. Usually the logging level is set to LOG_Notice. More... | |
dca::FunctionResult dca_wac::WacClassifier::classify | ( | const WacInputData & | input, |
WacClassificationResult & | result | ||
) | const |
Classification function that takes the given input and return its results (if any) in the provided result output object.
[in] | input | An initialized input data object. At least one of the Request, URL or Response fields must be filled in. |
[out] | result | If the classification was successful, the result contains the matched application and/or action id. |
dca::LogLevel dca_wac::WacClassifier::setLogLevel | ( | dca::LogLevel | newLevel | ) |
Changes the loglevel of the class and returns the previously used loglevel. Usually the logging level is set to LOG_Notice.
[in] | newLevel | The new LogLevel the class instance should use for logging |