Inherits org.sleuthkit.autopsy.url.analytics.DomainCategorizer.
|
synchronized void | close () throws Exception |
|
synchronized DomainCategory | getCategory (String domain, String host) throws DomainCategorizerException |
|
synchronized void | initialize () throws DomainCategorizerException |
|
|
static void | addItem (Map< String, String > mapping, String line, int lineNumber) |
|
static Map< String, String > | loadMapping () throws IOException |
|
|
Map< String, String > | mapping = null |
|
The default domain category provider that makes use of the default csv resource. This implementation is used if no other DomainCategorizer can determine a category for a host/domain entry.
CSV entries describing these domain types are compiled from sources. webmail: https://github.com/mailcheck/mailcheck/wiki/List-of-Popular-Domains disposable mail: https://www.npmjs.com/package/disposable-email-domains messaging: https://www.raymond.cc/blog/list-of-web-messengers-for-your-convenience/
NOTE: The (at)SuppressWarnings("try") on the class is to suppress warnings relating to the fact that the close method can throw an InterruptedException since Exception can encompass the InterruptedException. See the following github issue and bugs for more information: https://github.com/joyent/java-manta/issues/322#issuecomment-326391239, https://bugs.openjdk.java.net/browse/JDK-8155591, https://bugs.eclipse.org/bugs/show_bug.cgi?id=350279.
Definition at line 57 of file DefaultDomainCategorizer.java.
static void org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.addItem |
( |
Map< String, String > |
mapping, |
|
|
String |
line, |
|
|
int |
lineNumber |
|
) |
| |
|
staticprivate |
Adds a mapping of domain suffix to category based on the csv line found in the file.
- Parameters
-
mapping | The suffix to category mapping. |
line | The line to be parsed. |
lineNumber | The line number of this csv line. |
Definition at line 97 of file DefaultDomainCategorizer.java.
synchronized void org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.close |
( |
| ) |
throws Exception |
synchronized boolean org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.isInitialized |
( |
| ) |
|
|
private |
Returns true if this categorizer is properly initialized.
- Returns
- True if this categorizer is properly initialized.
Definition at line 148 of file DefaultDomainCategorizer.java.
static Map<String, String> org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.loadMapping |
( |
| ) |
throws IOException |
|
staticprivate |
Loads the domain suffixes from the csv resource file into a mapping of domain suffix to category name.
- Returns
- The mapping.
- Exceptions
-
Definition at line 70 of file DefaultDomainCategorizer.java.
final String org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.CSV_DELIMITER = "," |
|
staticprivate |
final String org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.DOMAIN_TYPE_CSV = "default_domain_categories.csv" |
|
staticprivate |
final Logger org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.logger = Logger.getLogger(DefaultDomainCategorizer.class.getName()) |
|
staticprivate |
Map<String, String> org.sleuthkit.autopsy.recentactivity.DefaultDomainCategorizer.mapping = null |
|
private |
The documentation for this class was generated from the following file: