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

Inherits OptionProcessor.

Public Member Functions

boolean isRunFromCommandLine ()
 

Protected Member Functions

Set< Option > getOptions ()
 
void process (Env env, Map< Option, String[]> values) throws CommandException
 

Private Attributes

final Option addDataSourceCommandOption = Option.withoutArgument('a', "addDataSource")
 
final Option caseBaseDirOption = Option.requiredArgument('o', "caseBaseDir")
 
final Option caseDirOption = Option.requiredArgument('d', "caseDir")
 
final Option caseNameOption = Option.requiredArgument('n', "caseName")
 
final Option caseTypeOption = Option.requiredArgument('t', "caseType")
 
final List< CommandLineCommand > commands = new ArrayList<>()
 
final Option createCaseCommandOption = Option.withoutArgument('c', "createCase")
 
final Option dataSourceObjectIdOption = Option.requiredArgument('i', "dataSourceObjectId")
 
final Option dataSourcePathOption = Option.requiredArgument('s', "dataSourcePath")
 
final Option generateReportsOption = Option.withoutArgument('g', "generateReports")
 
final Option ingestProfileOption = Option.requiredArgument('p', "ingestProfile")
 
final Option listAllDataSourcesCommandOption = Option.withoutArgument('l', "listAllDataSources")
 
boolean runFromCommandLine = false
 
final Option runIngestCommandOption = Option.withoutArgument('r', "runIngest")
 

Static Private Attributes

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

Detailed Description

This class can be used to add command line options to Autopsy

Definition at line 40 of file CommandLineOptionProcessor.java.

Member Function Documentation

Set<Option> org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.getOptions ( )
protected

Definition at line 64 of file CommandLineOptionProcessor.java.

boolean org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.isRunFromCommandLine ( )

Returns whether Autopsy should be running in command line mode or not.

Returns
true if running in command line mode, false otherwise.

Definition at line 384 of file CommandLineOptionProcessor.java.

void org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.process ( Env  env,
Map< Option, String[]>  values 
) throws CommandException
protected

Member Data Documentation

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.addDataSourceCommandOption = Option.withoutArgument('a', "addDataSource")
private

Definition at line 49 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.caseBaseDirOption = Option.requiredArgument('o', "caseBaseDir")
private

Definition at line 45 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.caseDirOption = Option.requiredArgument('d', "caseDir")
private

Definition at line 50 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.caseNameOption = Option.requiredArgument('n', "caseName")
private

Definition at line 43 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.caseTypeOption = Option.requiredArgument('t', "caseType")
private

Definition at line 44 of file CommandLineOptionProcessor.java.

final List<CommandLineCommand> org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.commands = new ArrayList<>()
private

Definition at line 58 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.createCaseCommandOption = Option.withoutArgument('c', "createCase")
private

Definition at line 46 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.dataSourceObjectIdOption = Option.requiredArgument('i', "dataSourceObjectId")
private

Definition at line 48 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.dataSourcePathOption = Option.requiredArgument('s', "dataSourcePath")
private

Definition at line 47 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.generateReportsOption = Option.withoutArgument('g', "generateReports")
private

Definition at line 54 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.ingestProfileOption = Option.requiredArgument('p', "ingestProfile")
private

Definition at line 52 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.listAllDataSourcesCommandOption = Option.withoutArgument('l', "listAllDataSources")
private

Definition at line 53 of file CommandLineOptionProcessor.java.

final Logger org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.logger = Logger.getLogger(CommandLineOptionProcessor.class.getName())
staticprivate

Definition at line 42 of file CommandLineOptionProcessor.java.

boolean org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.runFromCommandLine = false
private

Definition at line 56 of file CommandLineOptionProcessor.java.

final Option org.sleuthkit.autopsy.commandlineingest.CommandLineOptionProcessor.runIngestCommandOption = Option.withoutArgument('r', "runIngest")
private

Definition at line 51 of file CommandLineOptionProcessor.java.


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

Copyright © 2012-2020 Basis Technology. Generated on: Mon Jul 6 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.