Files
i2p.plugins.firefox/docs/I2PFirefox.md

10 KiB

Class I2PFirefox [src]

*/

Access: public
Description:

I2PFirefox.java Copyright C 2022 idk hankhill19580@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Author: idk
Parent class: I2PFirefoxProfileUnpacker
package: net.i2p.i2pfirefox

Dependencies

Show dependencies
  • java.io.File
  • java.io.FileOutputStream
  • java.io.FileWriter
  • java.io.IOException
  • java.io.OutputStream
  • java.io.PrintWriter
  • java.util.ArrayList
  • java.util.Arrays
  • java.util.List
  • java.util.concurrent.TimeUnit
  • java.util.stream.Collectors
  • java.util.stream.Stream

Member Variables

String[] FIREFOX_SEARCH_PATHS [src]

  • Access: private
  • Modifiers: final

Process process [src]

  • Access: private

boolean usability [src]

  • Access: public

Methods

baseMode [src]

  • Description:
  • Access: private
  • return: String

This method has no parameters.

storeFirefoxDefaults [src]

  • Description:
  • Access: public
  • return: void

This method has no parameters.

firefoxPathsUnix [src]

  • Description:
  • Access: public
  • return: String[]

This method has no parameters.

firefoxBinsUnix [src]

  • Description:
  • Access: public
  • return: String[]

This method has no parameters.

FIND_FIREFOX_SEARCH_PATHS_UNIX [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

firefoxPathsOSX [src]

  • Description:
  • Access: public
  • return: String[]

This method has no parameters.

FIND_FIREFOX_SEARCH_PATHS_OSX [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

firefoxPathsWindows [src]

  • Description:
  • Access: public
  • return: String[]

This method has no parameters.

firefoxBinsWindows [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

FIND_FIREFOX_SEARCH_PATHS_WINDOWS [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

FIND_ALL_FIREFOX_SEARCH_PATHS [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

FIND_FIREFOX_SEARCH_PATHS [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

NEARBY_FIREFOX_SEARCH_PATHS [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

FIREFOX_FINDER [src]

  • Description:
  • Access: private
  • return: String[]

This method has no parameters.

onlyValidFirefoxes [src]

  • Description: Check our list of firefox paths for a valid firefox binary. Just an existence check for now but should check versions in the future.
  • Access: public
  • return: a list of usable Firefoxes or an empty list if none are found.

This method has no parameters.

topFirefox [src]

  • Description: Return the best available Firefox from the list of Firefoxes we have.
  • Access: public
  • return: the path to the best available Firefox or null if none are found.

This method has no parameters.

topFirefox [src]

  • Description: Return the best available Firefox from the list of Firefoxes we have. if override is passed it will be validated and if it validates it will be used.
  • Access: public
  • return: the path to the best available Firefox or null if none are found.
Name Type Description
overrideFirefox String

defaultProcessBuilder [src]

  • Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
  • Access: public
  • return: a ProcessBuilder for the top Firefox binary and the default profile.

This method has no parameters.

defaultProcessBuilder [src]

  • Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
  • Access: public
  • return: ProcessBuilder
Name Type Description
args String[] the args to pass to the Firefox binary

privateProcessBuilder [src]

  • Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
  • Access: public
  • return: a ProcessBuilder for the top Firefox binary and the default profile.

This method has no parameters.

privateProcessBuilder [src]

  • Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
  • Access: public
  • return: ProcessBuilder
Name Type Description
args String[] the arguments to pass to the Firefox binary

appProcessBuilder [src]

  • Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
  • Access: public
  • return: a ProcessBuilder for the top Firefox binary and the default profile.

This method has no parameters.

appProcessBuilder [src]

  • Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
  • Access: public
  • return: ProcessBuilder
Name Type Description
args String[] the arguments to pass to the Firefox binary

headlessProcessBuilder [src]

  • Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --headless flag to open without a window.
  • Access: public
  • return: ProcessBuilder
Name Type Description
args String[] the arguments to pass to the Firefox binary

processBuilder [src]

  • Description:
  • Access: public
  • return: ProcessBuilder
Name Type Description
args String[]
app boolean

usabilityMode [src]

  • Description:
  • Access: private
  • return: String

This method has no parameters.

launchAndDetatch [src]

  • Description:
  • Access: public
  • return: Process
Name Type Description
privateWindow boolean
url String[]

launchAndDetatch [src]

  • Description:
  • Access: public
  • return: Process
Name Type Description
privateWindow int
url String[]

launch [src]

  • Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
  • Access: public
  • return: void
Name Type Description
privateWindow boolean
url String[]

launch [src]

  • Description:
  • Access: public
  • return: void
Name Type Description
privateWindow int
url String[]

launch [src]

  • Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
  • Access: public
  • return: void
Name Type Description
privateWindow boolean

launch [src]

  • Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory. Uses a semi-permanent profile.
  • Access: public
  • return: void

This method has no parameters.

ValidURL [src]

  • Description:
  • Access: private
  • return: String
Name Type Description
inUrl String

main [src]

  • Description:
  • Access: public
  • Modifiers: static
  • return: void
Name Type Description
args String[]