Autopsy  4.13.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | Static Private Member Functions | 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)
 

Detailed Description

Definition at line 26 of file NetworkUtils.java.

Constructor & Destructor Documentation

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

Definition at line 28 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 112 of file NetworkUtils.java.

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

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 59 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 38 of file NetworkUtils.java.

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


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

Copyright © 2012-2019 Basis Technology. Generated on: Tue Jan 7 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.