dca_wac::WacClassifier Class Reference
[Web Application Classification (WAC)]

#include <wac_classifier.h>

List of all members.


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

Member Function Documentation

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] 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.
Returns:
DCA_SUCCESS or one of the following error codes
See also:
WacClassification, WacInputData, WacClassificationResult, dca::FunctionResult
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] newLevel The 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:

Generated on 26 Sep 2016 for dca_interface by  doxygen 1.6.1