dca_interface  6.3.4
url_classification.h
Go to the documentation of this file.
1 /* IBM Source Code */
2 /* (C) Copyright IBM Corp. 2009, 2012 */
3 /* Licensed Materials - Property of IBM */
4 /* US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA Schedule Contract with IBM Corp. */
5 
6 #ifndef URL_CLASSIFICTION_H
7 #define URL_CLASSIFICTION_H
8 
39 namespace dca {
40 
42  class urlmodule_p;
44  class UrlDbClassifier;
45 
70 
100 
101  };
102 
110  {
111  public:
114 
131  static UrlClassification create( const DcaInstance& aDcaInstance, const License& aLicense );
132 
135  UrlClassification( const UrlClassification& aUrlClassification );
136  UrlClassification& operator = ( const UrlClassification& aUrlClassification );
137  virtual ~UrlClassification();
139 
154  const UrlDbClassifierOptions& options = UrlDbClassifierOptions() ) const;
155 
164 
165  protected:
167  PRIVATE_PTR urlmodule_p *_p;
168  };
169 
170 }
171 
172 #endif
int DCA_MODULE_ID_TYPE
Type for module ids.
Definition: base_types.h:21
static DCA_MODULE_ID_TYPE ID
The unique ID of the URL classification module.
LogLevel setLogLevel(LogLevel newLevel)
Sets the logging level for the given class instance. The old value will be returned.
bool enable_WebLearn
deprecated - has been replaced by enable_Feedback
Sets up options for embedded URL detection and provided Feedback mechanism.
Database connection class for a local or remote database.
Definition: base_classes.h:859
Main class for the URL classification.
bool enable_Feedback
This switches the Feedback feature on or off. This is switched off by default.
bool detect_EmbeddedUrlsInUrlPath
If set to true, you can specify that embedded URL detection is additionally performed in the path par...
URL database classifier class.
LogLevel
This enum is used in all setLogLevel() functions to change the verbosity level of the classes.
Definition: base_classes.h:212
Use a License to initialize a classification package or a toolbox package.
Definition: base_classes.h:560
Encapsulates the init and deinit of the DCA API.
Definition: base_classes.h:315
static UrlClassification create(const DcaInstance &aDcaInstance, const License &aLicense)
Creates the URL classification module by using the given DcaInstance and License.
bool enable_EmbeddedUrlDetection
If set to true embedded URL detection will be used in URL classification. This is switched on by defa...
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition: base_types.h:83
UrlDbClassifier createDbClassifier(const DbConnection &aDbConnection, const UrlDbClassifierOptions &options=UrlDbClassifierOptions()) const
Create a URL database classifier. The classifier is created by using the provided database connection...