Autopsy  4.18.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.url.analytics.domaincategorization.CustomWebCategorizer Class Reference

Inherits org.sleuthkit.autopsy.url.analytics.DomainCategorizer.

Public Member Functions

 CustomWebCategorizer ()
 
void close () throws SQLException
 
DomainCategory getCategory (String domain, String host) throws DomainCategorizerException
 
void initialize () throws DomainCategorizerException
 

Private Attributes

final WebCategoriesDataModel dataModel
 

Static Private Attributes

static final Logger logger = Logger.getLogger(CustomWebCategorizer.class.getName())
 

Detailed Description

A DomainCategoryProvider for custom web categories. NOTE: If this class package or name change, code in DomainCategoryRunner will also need to change to reflect the changing class name for ordering purposes.

Definition at line 36 of file CustomWebCategorizer.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.url.analytics.domaincategorization.CustomWebCategorizer.CustomWebCategorizer ( )

No parameter constructor that uses the singleton instance of the WebCategoriesDataModel.

Definition at line 56 of file CustomWebCategorizer.java.

Member Function Documentation

void org.sleuthkit.autopsy.url.analytics.domaincategorization.CustomWebCategorizer.close ( ) throws SQLException

These providers close methods are explicitly called when ingest is finished. Conceivably, the same instance of this class may have this method called multiple times and should handle that possibility gracefully.

Exceptions
Exception

Implements org.sleuthkit.autopsy.url.analytics.DomainCategorizer.

Definition at line 90 of file CustomWebCategorizer.java.

DomainCategory org.sleuthkit.autopsy.url.analytics.domaincategorization.CustomWebCategorizer.getCategory ( String  domain,
String  host 
) throws DomainCategorizerException

Provides the DomainCategory for a given domain/host or null if none can be determined.

Parameters
domainThe domain of the url.
hostThe host of the url.
Returns
The domain category if the domain/host combination was found or null if not.

Implements org.sleuthkit.autopsy.url.analytics.DomainCategorizer.

Definition at line 61 of file CustomWebCategorizer.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.CustomWebCategorizer.initialize ( ) throws DomainCategorizerException

Initializes this provider in preparation to handle 'getCategory' requests during ingest. Conceivably, the same instance of this class may have this called multiple times and should handle that possibility gracefully.

Exceptions
DomainCategorizerException

Implements org.sleuthkit.autopsy.url.analytics.DomainCategorizer.

Definition at line 81 of file CustomWebCategorizer.java.

Member Data Documentation

final WebCategoriesDataModel org.sleuthkit.autopsy.url.analytics.domaincategorization.CustomWebCategorizer.dataModel
private

Definition at line 40 of file CustomWebCategorizer.java.

final Logger org.sleuthkit.autopsy.url.analytics.domaincategorization.CustomWebCategorizer.logger = Logger.getLogger(CustomWebCategorizer.class.getName())
staticprivate

Definition at line 38 of file CustomWebCategorizer.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.