dca_interface  6.3.4
dca_wac::WacInputData Class Reference

#include <wac_inputdata.h>

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

  • A valid and initialized dca::Url object.
  • (HTTP) request as raw data
  • (HTTP) response as raw data

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: