Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.NetworkUtils Class Reference

Static Public Member Functions

static String extractDomain (String urlString)
 
static String getLocalHostName ()
 

Private Member Functions

 NetworkUtils ()
 

Static Private Member Functions

static String getBaseDomain (String url)
 

Static Private Attributes

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

Detailed Description

Definition at line 30 of file NetworkUtils.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.NetworkUtils.NetworkUtils ( )
private

Definition at line 34 of file NetworkUtils.java.

Member Function Documentation

static String org.sleuthkit.autopsy.coreutils.NetworkUtils.extractDomain ( String  urlString)
static

Attempt to extract the domain from a URL. Will start by using the built-in URL class, and if that fails will try to extract it manually.

Parameters
urlStringThe URL to extract the domain from
Returns
empty string if no domain name was found

Definition at line 106 of file NetworkUtils.java.

References org.sleuthkit.autopsy.coreutils.NetworkUtils.getBaseDomain().

Referenced by org.sleuthkit.autopsy.modules.leappanalyzers.LeappFileProcessor.formatValueBasedOnAttrType(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeNormalizer.normalizeDomain().

static String org.sleuthkit.autopsy.coreutils.NetworkUtils.getBaseDomain ( String  url)
staticprivate

Attempt to manually extract the domain from a URL.

Parameters
url
Returns
empty string if no domain could be found

Definition at line 65 of file NetworkUtils.java.

Referenced by org.sleuthkit.autopsy.coreutils.NetworkUtils.extractDomain().

static String org.sleuthkit.autopsy.coreutils.NetworkUtils.getLocalHostName ( )
static

Set the host name variable. Sometimes the network can be finicky, so the answer returned by getHostName() could throw an exception or be null. Have it read the environment variable if getHostName() is unsuccessful.

Returns
the local host name

Definition at line 44 of file NetworkUtils.java.

Referenced by org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.copyResults(), org.sleuthkit.autopsy.casemodule.Case.createCaseDirectory(), org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.fixPaths(), org.sleuthkit.autopsy.casemodule.Case.getOutputDirectory(), and org.sleuthkit.autopsy.casemodule.Case.getTempDirectory().

Member Data Documentation

final Logger org.sleuthkit.autopsy.coreutils.NetworkUtils.logger = Logger.getLogger(NetworkUtils.class.getName())
staticprivate

Definition at line 32 of file NetworkUtils.java.


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

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