dca_interface
6.3.4
|
#include <base_url.h>
Encapsulates a URL object.
URL objects are used in some classifier functions as input, or extracted from other objects, for example emails.
URL objects buffer the normalization process of the given URL string and allow an optimized internal access to the different URL parts.
Supported protocols for a valid Url object are currently
Other protocols are not currently supported. An error will occur if an attempt is made to create a URL object with a different protocol to those shown above.
Definition at line 43 of file base_url.h.
Static Public Member Functions | |
static Url | create (const DcaInstance &aDcaInstance, const std::string &urlString) |
Standard Url creation function. More... | |
|
static |
Standard Url creation function.
This is used to create a Url object from a given string.
The urlString will be internally normalized and split into component parts, if necessary.
[in] | aDcaInstance | A previously initialized DcaInstance object |
[in] | urlString | A string in UTF-8 representing a URL e.g. "www.ibm.com" or "http://www.google.com" |
ExDca | - One of the following error codes are available (using ExDca::getReturnCode() in your catch-handler) |