Autopsy  4.21.0
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

Constructor & Destructor Documentation

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

Definition at line 34 of file

Member Function Documentation

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

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.

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

Definition at line 106 of file

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)

Attempt to manually extract the domain from a URL.

empty string if no domain could be found

Definition at line 65 of file

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

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

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.

the local host name

Definition at line 44 of file

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())

Definition at line 32 of file

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.