9.9 KiB
Class I2PChromium [src]
*/
Access: public
Description:
I2PChromium.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: I2PCommonBrowser
package: net.i2p.i2pfirefox
Dependencies
Show dependencies
- java.io.File
- java.io.IOException
- java.net.Socket
- java.util.ArrayList
Member Variables
String[] CHROMIUM_SEARCH_PATHS [src]
- Access: private
- Modifiers: final
int DEFAULT_TIMEOUT [src]
- Access: private
- Modifiers: final
Process p [src]
- Access: private
Methods
FIND_CHROMIUM_SEARCH_PATHS_UNIX [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_CHROMIUM_SEARCH_PATHS_OSX [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_ALL_CHROMIUM_SEARCH_PATHS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
FIND_CHROMIUM_SEARCH_PATHS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
NEARBY_CHROMIUM_SEARCH_PATHS [src]
- Description:
- Access: private
- Modifiers: static
- return: String[]
This method has no parameters.
CHROMIUM_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.
onlyValidChromiums [src]
- Description: Check our list of chrome paths for a valid chrome binary. Just an existence check for now but should check versions in the future.
- Access: public
- return: a list of usable Chromiums or an empty list if none are found.
This method has no parameters.
topChromium [src]
- Description: Return the best available Chromium from the list of Chromiums we have.
- Access: public
- return: the path to the best available Chromium or null if none are found.
This method has no parameters.
topChromium [src]
- Description: Return the best available Chromium from the list of Chromiums 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 Chromium or null if none are found.
Name | Type | Description |
---|---|---|
overrideChromium | String |
defaultProcessBuilder [src]
- Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
- Access: public
- return: a ProcessBuilder for the top Chromium binary and the default profile.
This method has no parameters.
defaultProcessBuilder [src]
- Description: Build a ProcessBuilder for the top Chromium binary and the default profile. @args the arguments to pass to the Chromium binary
- Access: public
- return: a ProcessBuilder for the top Chromium binary and the default profile.
Name | Type | Description |
---|---|---|
args | String[] |
privateProcessBuilder [src]
- Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
- Access: public
- return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --incognito flag.
This method has no parameters.
privateProcessBuilder [src]
- Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
- Access: public
- return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --incognito flag.
Name | Type | Description |
---|---|---|
args | String[] | the arguments to pass to the Chromium binary. |
processBuilder [src]
- Description: Build a ProcessBuilder for the top Chromium binary and the default profile with a specific set of extended arguments.
- Access: public
- return: a ProcessBuilder for the top Chromium binary and default profile with a specific set of extended arguments.
Name | Type | Description |
---|---|---|
args | String[] | the extended arguments to pass to the Chromium 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 Chromium 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 Chromium 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 Chromium with the profile directory.
- 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 |