dca_interface  6.3.4
dca_wac::WacClassifier Class Reference

#include <wac_classifier.h>

Detailed Description

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.

See also
WacClassification, WacInputData, WacClassificationResult

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...
 

Member Function Documentation

◆ classify()

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.

Parameters
[in]inputAn initialized input data object. At least one of the Request, URL or Response fields must be filled in.
[out]resultIf the classification was successful, the result contains the matched application and/or action id.
Returns
DCA_SUCCESS or one of the following error codes
See also
WacClassification, WacInputData, WacClassificationResult, dca::FunctionResult

◆ setLogLevel()

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.

Parameters
[in]newLevelThe new LogLevel the class instance should use for logging
Returns
The old used logging level.

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