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

Inherits CacheLoader< DomainSearchThumbnailRequest, Image >.

Public Member Functions

 DomainSearchThumbnailLoader ()
 
Image load (DomainSearchThumbnailRequest thumbnailRequest) throws TskCoreException, DiscoveryException, InterruptedException
 

Private Member Functions

void addIfSupported (List< AbstractFile > files, Content sourceContent)
 
List< AbstractFile > getCandidatesFromWebCache (SleuthkitCase caseDb, List< BlackboardArtifact > artifacts) throws TskCoreException, InterruptedException
 
List< AbstractFile > getCandidatesFromWebDownloads (SleuthkitCase caseDb, List< BlackboardArtifact > artifacts) throws TskCoreException, InterruptedException
 
boolean isIco (AbstractFile file)
 

Private Attributes

final DomainSearchArtifactsCache artifactsCache
 

Static Private Attributes

static final String ICO_EXTENSION = "ico"
 
static final List< String > ICO_MIMETYPES = Arrays.asList("image/vnd.microsoft.icon", "image/x-icon")
 
static final List< String > SUPPORTED_EXTENSIONS = Arrays.asList("jpg", "svg", "png", "webp", "ico", "gif")
 
static final List< String > SUPPORTED_MIMETYPES
 
static final String UNSUPPORTED_IMAGE = "org/sleuthkit/autopsy/images/image-extraction-not-supported.png"
 

Detailed Description

Loads a thumbnail for the given request. Thumbnail candidates types are defined below. These candidates types must be the source of either TSK_WEB_DOWNLOAD or TSK_WEB_CACHE artifacts that match the domain name (see the DomainSearch getArtifacts() API). Candidate files are sorted by most recent if sourced from TSK_WEB_DOWNLOADs and by size if sourced from TSK_WEB_CACHE artifacts. The first suitable thumbnail is selected.

Definition at line 49 of file DomainSearchThumbnailLoader.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.DomainSearchThumbnailLoader ( )

Construct a new DomainSearchThumbnailLoader.

Definition at line 63 of file DomainSearchThumbnailLoader.java.

Member Function Documentation

void org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.addIfSupported ( List< AbstractFile >  files,
Content  sourceContent 
)
private

Checks if the candidate source content is indeed a supported type.

Parameters
filesThe list of source content files which are supported.
sourceContentThe source content to check and possibly add.

Definition at line 201 of file DomainSearchThumbnailLoader.java.

Referenced by org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getCandidatesFromWebCache(), and org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getCandidatesFromWebDownloads().

List<AbstractFile> org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getCandidatesFromWebCache ( SleuthkitCase  caseDb,
List< BlackboardArtifact >  artifacts 
) throws TskCoreException, InterruptedException
private

Finds all supported image files from TSK_WEB_CACHE instances.

Parameters
caseDbThe case database being searched.
artifactsThe list of artifacts to get images from.
Returns
The list of AbstractFiles representing supported images which were associated with the artifacts.

Definition at line 179 of file DomainSearchThumbnailLoader.java.

References org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.addIfSupported().

Referenced by org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.load().

List<AbstractFile> org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.getCandidatesFromWebDownloads ( SleuthkitCase  caseDb,
List< BlackboardArtifact >  artifacts 
) throws TskCoreException, InterruptedException
private

Finds all supported image files from TSK_WEB_DOWNLOAD instances.

Parameters
caseDbThe case database being searched.
artifactsThe list of artifacts to search.
Returns
The list of AbstractFiles representing supported images which were associated with the artifacts.
Exceptions
TskCoreException

Definition at line 153 of file DomainSearchThumbnailLoader.java.

References org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.addIfSupported().

Referenced by org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.load().

boolean org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.isIco ( AbstractFile  file)
private
Image org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.load ( DomainSearchThumbnailRequest  thumbnailRequest) throws TskCoreException, DiscoveryException, InterruptedException

Member Data Documentation

final DomainSearchArtifactsCache org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.artifactsCache
private

Definition at line 58 of file DomainSearchThumbnailLoader.java.

final String org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.ICO_EXTENSION = "ico"
staticprivate

Definition at line 56 of file DomainSearchThumbnailLoader.java.

final List<String> org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.ICO_MIMETYPES = Arrays.asList("image/vnd.microsoft.icon", "image/x-icon")
staticprivate

Definition at line 57 of file DomainSearchThumbnailLoader.java.

final List<String> org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.SUPPORTED_EXTENSIONS = Arrays.asList("jpg", "svg", "png", "webp", "ico", "gif")
staticprivate

Definition at line 52 of file DomainSearchThumbnailLoader.java.

final List<String> org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.SUPPORTED_MIMETYPES
staticprivate
Initial value:
= Arrays.asList(
"image/gif", "image/jpeg", "image/png", "image/webp",
"image/svg+xml", "image/vnd.microsoft.icon", "image/x-icon")

Definition at line 53 of file DomainSearchThumbnailLoader.java.

final String org.sleuthkit.autopsy.discovery.search.DomainSearchThumbnailLoader.UNSUPPORTED_IMAGE = "org/sleuthkit/autopsy/images/image-extraction-not-supported.png"
staticprivate

Definition at line 51 of file DomainSearchThumbnailLoader.java.


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

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