9.7 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
package: net.i2p.i2pfirefox
Dependencies
Show dependencies
- java.io.File
- java.io.IOException
- java.net.Socket
- java.util.ArrayList
Member Variables
String[] FIREFOX_SEARCH_PATHS [src]
- Access: private
- Modifiers: final
int DEFAULT_TIMEOUT [src]
- Access: private
- Modifiers: final
Process p [src]
- Access: private
Methods
FIND_FIREFOX_SEARCH_PATHS_UNIX [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_FIREFOX_SEARCH_PATHS_OSX [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_FIREFOX_SEARCH_PATHS_WINDOWS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_ALL_FIREFOX_SEARCH_PATHS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_FIREFOX_SEARCH_PATHS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
NEARBY_FIREFOX_SEARCH_PATHS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIREFOX_FINDER [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
getOperatingSystem [src]
- Description:
- Access: private
- Modifiers: static
- 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 |
processBuilder [src]
- Description: Build a ProcessBuilder for the top Firefox binary and the default profile with a specific set of extended arguments.
- Access: public
- return: a ProcessBuilder for the top Firefox binary and default profile with a specific set of extended arguments.
Name | Type | Description |
---|---|---|
args | String[] | the extended arguments to pass to the Firefox binary. |
waitForProxy [src]
- Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
- Access: public
- return: true if the proxy is ready false if it is not.
This method has no parameters.
waitForProxy [src]
- Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
- Access: public
- return: true if the proxy is ready false if it is not.
Name | Type | Description |
---|---|---|
timeout | int | the number of seconds to wait for the proxy to be ready. |
waitForProxy [src]
- Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
- Access: public
- return: true if the proxy is ready false if it is not.
Name | Type | Description |
---|---|---|
timeout | int | the number of seconds to wait for the proxy to be ready. |
port | int | the port to wait for the proxy to be ready on. |
waitForProxy [src]
- Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
- Access: public
- return: true if the proxy is ready false if it is not.
Name | Type | Description |
---|---|---|
timeout | int | the number of seconds to wait for the proxy to be ready. |
port | int | the port to wait for the proxy to be ready on. |
host | String | the host to wait for the proxy to be ready on. |
checkifPortIsOccupied [src]
- Description:
- Access: private
- return: boolean
Name | Type | Description |
---|---|---|
port | int | |
host | String |
launchAndDetatch [src]
- Description:
- Access: public
- return: Process
Name | Type | Description |
---|---|---|
privateWindow | boolean | |
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: 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
- Modifiers: static
- return: String
Name | Type | Description |
---|---|---|
inUrl | String |
main [src]
- Description:
- Access: public
- Modifiers: static
- return: void
Name | Type | Description |
---|---|---|
args | String[] |
sleep [src]
- Description:
- Access: private
- Modifiers: static
- return: void
Name | Type | Description |
---|---|---|
millis | int |