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

#include <wac_inputdata.h>

List of all members.


Detailed Description

Definition of the WacInputData class.

A WacInputData object is used as input for a WAC classification.

The WacInputData must contain at least one of the 3 different input parts of a web request

At least one input field must be filled in. If more than one is set up, the classification may be more accurate, but will also require more time to complete. Some results, for example Action == "DOWNLOAD_FILE", can only be obtained if a request/response was set up.

Note:
All input data (except the URL object) are specified as as raw C-strings with a given length. The buffers will not be copied and must therefore remain valid and unchanged until the call to WacClassifier::classify() has returned.
It is highly recommended to perform a URL classification call before performing a WAC classification. The result of the URL classification (dca::UrlClassificationResults) can be used in a call to dca_wac::WacClassification::wacDetailsAvailable(). A WAC classification call will only provide useful results if this function returns true.
See also:
WacClassifier

Definition at line 49 of file wac_inputdata.h.

Public Member Functions

void setUrlObject (const dca::Url &aUrl)
 Sets up the Input Data object by using the given dca::Url object.
void setRequestData (const char *data, size_t data_length)
 Sets up the buffer containing the (HTTP) request. This is assumed to contain US ASCII 7-Bit characters only.
void setResponse (const char *data, size_t data_length)
 Sets up the buffer containing the (HTTP) response. This is assumed to contain US ASCII 7-Bit characters only.

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

Generated on 26 Sep 2016 for dca_interface by  doxygen 1.6.1