Compare commits

...

59 Commits

Author SHA1 Message Date
idk
44e4b2348d update I2PFirefox.html 2022-09-07 12:07:02 -04:00
idk
c581903d0a update I2PCommonBrowser.html 2022-09-07 12:06:58 -04:00
idk
853d07b7d5 update I2PChromium.html 2022-09-07 12:06:44 -04:00
idk
29b1576936 update CHANGES.html 2022-09-07 12:06:33 -04:00
idk
2ea0850f06 update index.html 2022-09-07 12:06:29 -04:00
idk
5ad93c97aa update changelog 2022-09-07 12:06:06 -04:00
idk
26154f3b7f make waitForProxy always return true if the timeout is zero or less 2022-09-07 12:04:03 -04:00
idk
64505f6617 wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that) 2022-09-07 11:58:08 -04:00
idk
800de73b9d wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that) 2022-09-07 11:55:10 -04:00
idk
4d605d40b2 wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that) 2022-09-07 11:49:21 -04:00
idk
368d9c3423 move all proxy checking into common class(DRY) and add the ability to selectively disable or change the timeout time 2022-09-07 11:45:49 -04:00
idk
76d05d0d53 update I2PFirefoxProfileChecker.html 2022-09-07 04:35:28 -04:00
idk
7e6f11f6b3 update index.html 2022-09-07 04:34:45 -04:00
idk
b9c0fc5e38 fix unclosed scanner 2022-09-07 04:34:36 -04:00
idk
5d4b1a4681 update index.html 2022-09-07 03:51:00 -04:00
idk
b2f604a4a5 fix url argument passing 2022-09-07 03:50:51 -04:00
idk
7e3ae6ad04 update index.html 2022-09-07 03:49:31 -04:00
idk
2edb2a3408 tweak releases slightly 2022-09-07 03:35:50 -04:00
idk
6c1f2bc640 update I2PFirefoxProfileChecker.html 2022-09-07 03:24:08 -04:00
idk
76292fc7c0 update I2PFirefox.html 2022-09-07 03:24:01 -04:00
idk
c354c49128 update index.html 2022-09-07 03:23:27 -04:00
idk
9d66efe846 if the headless process survives destruction, forcibly estroy it 2022-09-07 03:22:11 -04:00
idk
24a08cf7c5 remove -attach-console as it probably does nothing and breaks something 2022-09-07 03:16:13 -04:00
idk
4e19c36817 update RELEASES.html 2022-09-07 00:46:22 -04:00
idk
05dfef06e3 update index.html 2022-09-07 00:45:23 -04:00
idk
8397d7415b update I2PFirefox.html 2022-09-06 23:54:43 -04:00
idk
f9279f494f update index.html 2022-09-06 23:54:11 -04:00
idk
e3c2ab91be Destroy headless process if it goes too long 2022-09-06 23:52:52 -04:00
idk
a8a54f6b4c update CHANGES.html 2022-09-06 23:50:26 -04:00
idk
995e9805a2 Destroy headless process if it goes too long 2022-09-06 23:50:19 -04:00
idk
f3e7c28503 update RELEASES.html 2022-09-06 22:41:50 -04:00
idk
6042f30350 update index.html 2022-09-06 22:40:52 -04:00
idk
ab226e5a4c update PACKAGES.html 2022-09-06 22:38:24 -04:00
idk
e632a49933 update I2PFirefox.html 2022-09-06 22:38:01 -04:00
idk
beef36b36d update index.html 2022-09-06 22:37:27 -04:00
idk
2ed27fa307 update USAGE.html 2022-09-06 22:31:34 -04:00
idk
1a5ce21912 update TODO.html 2022-09-06 22:31:31 -04:00
idk
7754c0b43d update RELEASES.html 2022-09-06 22:31:27 -04:00
idk
b4b2a30935 update PACKAGES.html 2022-09-06 22:31:23 -04:00
idk
81f58b9d48 update LICENSE.html 2022-09-06 22:31:19 -04:00
idk
02ac99531a update I2PGenericUnsafeBrowser.html 2022-09-06 22:31:15 -04:00
idk
2b2aea0748 update I2PFirefoxProfileUnpacker.html 2022-09-06 22:31:12 -04:00
idk
09e6864cb9 update I2PFirefoxProfileChecker.html 2022-09-06 22:31:08 -04:00
idk
f954bf4893 update I2PFirefoxProfileBuilder.html 2022-09-06 22:31:04 -04:00
idk
21f74306c8 update I2PFirefox.html 2022-09-06 22:31:00 -04:00
idk
ccde6b65dc update I2PCommonBrowser.html 2022-09-06 22:30:56 -04:00
idk
f348347115 update I2PChromiumProfileUnpacker.html 2022-09-06 22:30:52 -04:00
idk
ef19f681d0 update I2PChromiumProfileChecker.html 2022-09-06 22:30:48 -04:00
idk
1b60e74f9d update I2PChromiumProfileBuilder.html 2022-09-06 22:30:44 -04:00
idk
9a052f4f3c update I2PChromium.html 2022-09-06 22:30:40 -04:00
idk
1e94b34efe update I2PBrowser.html 2022-09-06 22:30:36 -04:00
idk
01c19d1ffd update EXAMPLES.html 2022-09-06 22:30:33 -04:00
idk
de6b872426 update CHANGES.html 2022-09-06 22:30:29 -04:00
idk
27cb5b8365 update index.html 2022-09-06 22:30:25 -04:00
idk
2d508e1417 update download page 2022-09-06 22:30:14 -04:00
idk
d6a62bb6ee start working on an OSX package, won't have a signer for now but gotta start somewhere 2022-09-06 21:35:27 -04:00
idk
4095e61ad3 minor tweak to releaser script 2022-09-06 21:22:03 -04:00
idk
f107bf92b2 add sha256sums for releases 2022-09-06 21:08:34 -04:00
idk
bf2e964e1a update index.html 2022-09-06 21:06:31 -04:00
41 changed files with 2036 additions and 940 deletions

3
.gitignore vendored
View File

@ -16,3 +16,6 @@ i2pbrowser/
/i2pbrowser*.deb
/i2pbrowser*.rpm
/logs
/*.jar
/*.msi
/*.exe

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -129,6 +134,20 @@
</a>
Tue, September 6
</h2>
<ul>
<li>
Wait up to 5 seconds for the initializing headless Firefox instance to die on Windows
</li>
<li>
Add option to disable proxy pre-check by setting timeout to zero or less
</li>
</ul>
<h2>
<a href="#tue-september-6" rel="nofollow">
<span></span>
</a>
Tue, September 6
</h2>
<ul>
<li>
Run headlessly on first-run on Windows.
@ -142,6 +161,9 @@
<li>
Add support for building an .rpm package.
</li>
<li>
Destroy headless process if it goes too long.
</li>
</ul>
<h2>
<a href="#mon-september-5" rel="nofollow">

View File

@ -1,3 +1,9 @@
Tue, September 6
----------------
- Wait up to 5 seconds for the initializing headless Firefox instance to die on Windows
- Add option to disable proxy pre-check by setting timeout to zero or less
Tue, September 6
----------------
@ -5,6 +11,7 @@ Tue, September 6
- Add support for building an .exe package.
- Add support for building an .zip Windows portable package.
- Add support for building an .rpm package.
- Destroy headless process if it goes too long.
Mon, September 5
----------------

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -178,12 +183,6 @@
<li>
java.io.File
</li>
<li>
java.io.IOException
</li>
<li>
java.net.Socket
</li>
<li>
java.util.ArrayList
</li>
@ -214,25 +213,6 @@
Modifiers: final
</li>
</ul>
<h4>
<a href="#int-default-timeout-src" rel="nofollow">
<span></span>
</a>
int DEFAULT_TIMEOUT
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L" rel="nofollow">
[src]
</a>
</h4>
<blockquote></blockquote>
<ul>
<li>
Access: private
<br>
</li>
<li>
Modifiers: final
</li>
</ul>
<h4>
<a href="#process-p-src" rel="nofollow">
<span></span>
@ -260,7 +240,7 @@
<span></span>
</a>
FIND_CHROMIUM_SEARCH_PATHS_UNIX
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L54" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L51" rel="nofollow">
[src]
</a>
</h3>
@ -289,7 +269,7 @@
<span></span>
</a>
FIND_CHROMIUM_SEARCH_PATHS_OSX
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L70" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L67" rel="nofollow">
[src]
</a>
</h3>
@ -318,7 +298,7 @@
<span></span>
</a>
FIND_CHROMIUM_SEARCH_PATHS_WINDOWS
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L88" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L85" rel="nofollow">
[src]
</a>
</h3>
@ -347,7 +327,7 @@
<span></span>
</a>
FIND_ALL_CHROMIUM_SEARCH_PATHS
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L125" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L122" rel="nofollow">
[src]
</a>
</h3>
@ -376,7 +356,7 @@
<span></span>
</a>
FIND_CHROMIUM_SEARCH_PATHS
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L145" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L142" rel="nofollow">
[src]
</a>
</h3>
@ -405,7 +385,7 @@
<span></span>
</a>
NEARBY_CHROMIUM_SEARCH_PATHS
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L159" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L156" rel="nofollow">
[src]
</a>
</h3>
@ -434,7 +414,7 @@
<span></span>
</a>
CHROMIUM_FINDER
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L213" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L210" rel="nofollow">
[src]
</a>
</h3>
@ -463,7 +443,7 @@
<span></span>
</a>
getOperatingSystem
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L225" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L222" rel="nofollow">
[src]
</a>
</h3>
@ -492,7 +472,7 @@
<span></span>
</a>
onlyValidChromiums
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L247" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L244" rel="nofollow">
[src]
</a>
</h3>
@ -518,7 +498,7 @@
<span></span>
</a>
topChromium
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L267" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L264" rel="nofollow">
[src]
</a>
</h3>
@ -544,7 +524,7 @@
<span></span>
</a>
topChromium
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L296" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L293" rel="nofollow">
[src]
</a>
</h3>
@ -574,7 +554,7 @@
<span></span>
</a>
defaultProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L314" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L311" rel="nofollow">
[src]
</a>
</h3>
@ -600,7 +580,7 @@
<span></span>
</a>
defaultProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L327" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L324" rel="nofollow">
[src]
</a>
</h3>
@ -630,7 +610,7 @@
<span></span>
</a>
privateProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L339" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L336" rel="nofollow">
[src]
</a>
</h3>
@ -656,7 +636,7 @@
<span></span>
</a>
privateProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L352" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L349" rel="nofollow">
[src]
</a>
</h3>
@ -686,7 +666,7 @@
<span></span>
</a>
processBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L399" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L396" rel="nofollow">
[src]
</a>
</h3>
@ -711,166 +691,12 @@
<br>
| args | String[] | the extended arguments to pass to the Chromium binary. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L493" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L503" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L515" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
<br>
| port | int | the port to wait for the proxy to be ready on. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L528" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
<br>
| port | int | the port to wait for the proxy to be ready on. |
<br>
| host | String | the host to wait for the proxy to be ready on. |
</p>
<h3>
<a href="#checkifportisoccupied-src" rel="nofollow">
<span></span>
</a>
checkifPortIsOccupied
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L541" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| port | int | |
<br>
| host | String | |
</p>
<h3>
<a href="#launchanddetatch-src" rel="nofollow">
<span></span>
</a>
launchAndDetatch
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L551" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L483" rel="nofollow">
[src]
</a>
</h3>
@ -902,7 +728,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L598" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L530" rel="nofollow">
[src]
</a>
</h3>
@ -934,7 +760,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L623" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L555" rel="nofollow">
[src]
</a>
</h3>
@ -964,7 +790,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L632" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L564" rel="nofollow">
[src]
</a>
</h3>
@ -990,7 +816,7 @@
<span></span>
</a>
ValidURL
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L634" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L566" rel="nofollow">
[src]
</a>
</h3>
@ -1023,7 +849,7 @@
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L644" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L576" rel="nofollow">
[src]
</a>
</h3>
@ -1056,7 +882,7 @@
<span></span>
</a>
sleep
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L672" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PChromium.java#L608" rel="nofollow">
[src]
</a>
</h3>

View File

@ -18,8 +18,6 @@ package: net.i2p.i2pfirefox
</summary>
<ul>
<li>java.io.File</li>
<li>java.io.IOException</li>
<li>java.net.Socket</li>
<li>java.util.ArrayList</li>
</ul>
</details>
@ -33,13 +31,6 @@ package: net.i2p.i2pfirefox
+ Access: private
+ Modifiers: final
#### int DEFAULT_TIMEOUT [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
>
+ Access: private
+ Modifiers: final
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
>
@ -48,7 +39,7 @@ package: net.i2p.i2pfirefox
## Methods
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L54)
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L51)
+ Description:
+ Access: private
@ -58,7 +49,7 @@ package: net.i2p.i2pfirefox
This method has no parameters.
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L70)
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L67)
+ Description:
+ Access: private
@ -68,7 +59,7 @@ This method has no parameters.
This method has no parameters.
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L88)
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L85)
+ Description:
+ Access: private
@ -78,7 +69,7 @@ This method has no parameters.
This method has no parameters.
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L125)
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L122)
+ Description:
+ Access: private
@ -88,7 +79,7 @@ This method has no parameters.
This method has no parameters.
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L145)
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L142)
+ Description:
+ Access: private
@ -98,7 +89,7 @@ This method has no parameters.
This method has no parameters.
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L159)
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L156)
+ Description:
+ Access: private
@ -108,7 +99,7 @@ This method has no parameters.
This method has no parameters.
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L213)
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L210)
+ Description:
+ Access: private
@ -118,7 +109,7 @@ This method has no parameters.
This method has no parameters.
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L225)
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L222)
+ Description:
+ Access: private
@ -128,7 +119,7 @@ This method has no parameters.
This method has no parameters.
### onlyValidChromiums [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L247)
### onlyValidChromiums [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L244)
+ 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
@ -137,7 +128,7 @@ This method has no parameters.
This method has no parameters.
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L267)
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L264)
+ Description: Return the best available Chromium from the list of Chromiums we have.
+ Access: public
@ -146,7 +137,7 @@ This method has no parameters.
This method has no parameters.
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L296)
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L293)
+ 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
@ -157,7 +148,7 @@ This method has no parameters.
| overrideChromium | String | |
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L314)
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L311)
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
+ Access: public
@ -166,7 +157,7 @@ This method has no parameters.
This method has no parameters.
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L327)
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L324)
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile. @args the arguments to pass to the Chromium binary
+ Access: public
@ -177,7 +168,7 @@ This method has no parameters.
| args | String[] | |
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L339)
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L336)
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
+ Access: public
@ -186,7 +177,7 @@ This method has no parameters.
This method has no parameters.
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L352)
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L349)
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
+ Access: public
@ -197,7 +188,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Chromium binary. |
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L399)
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L396)
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile with a specific set of extended arguments.
+ Access: public
@ -208,64 +199,7 @@ This method has no parameters.
| args | String[] | the extended arguments to pass to the Chromium binary. |
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L493)
+ 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]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L503)
+ 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]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L515)
+ 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]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L528)
+ 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]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L541)
+ Description:
+ Access: private
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| port | int | |
| host | String | |
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L551)
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L483)
+ Description:
+ Access: public
@ -277,7 +211,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L598)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L530)
+ 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
@ -289,7 +223,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L623)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L555)
+ 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
@ -300,7 +234,7 @@ This method has no parameters.
| privateWindow | boolean | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L632)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L564)
+ 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
@ -309,7 +243,7 @@ This method has no parameters.
This method has no parameters.
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L634)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L566)
+ Description:
+ Access: private
@ -321,7 +255,7 @@ This method has no parameters.
| inUrl | String | |
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L644)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L576)
+ Description:
+ Access: public
@ -333,7 +267,7 @@ This method has no parameters.
| args | String[] | |
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L672)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L608)
+ Description:
+ Access: private

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -187,6 +192,9 @@
<li>
java.io.OutputStream
</li>
<li>
java.net.Socket
</li>
<li>
java.nio.file.Files
</li>
@ -216,117 +224,42 @@
</a>
Member Variables
</h2>
<h2>
<a href="#methods" rel="nofollow">
<h4>
<a href="#src" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#validateuserdir-src" rel="nofollow">
<span></span>
</a>
validateUserDir
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L52" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L36" rel="nofollow">
[src]
</a>
</h3>
</h4>
<blockquote>
<p>
static FileHandler fh;
</p>
</blockquote>
<ul>
<li>
Description:
Access: private
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br>
Modifiers: final
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#iswindows-src" rel="nofollow">
<h4>
<a href="#src" rel="nofollow">
<span></span>
</a>
isWindows
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L98" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L37" rel="nofollow">
[src]
</a>
</h3>
</h4>
<blockquote>
<p>
// private final int DEFAULT_TIMEOUT = 200;
</p>
</blockquote>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: protected
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#println-src" rel="nofollow">
<span></span>
</a>
println
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L110" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| line | String | |
</p>
<h3>
<a href="#logfile-src" rel="nofollow">
<span></span>
</a>
logFile
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L112" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
@ -334,20 +267,19 @@
<li>
Modifiers: static
</li>
<li>
return: File
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h2>
<a href="#methods" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#runtimedirectory-src" rel="nofollow">
<span></span>
</a>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L128" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L131" rel="nofollow">
[src]
</a>
</h3>
@ -382,7 +314,7 @@
<span></span>
</a>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L145" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L148" rel="nofollow">
[src]
</a>
</h3>
@ -415,7 +347,7 @@
<span></span>
</a>
profileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L195" rel="nofollow">
[src]
</a>
</h3>
@ -450,7 +382,7 @@
<span></span>
</a>
profileDir
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L204" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L207" rel="nofollow">
[src]
</a>
</h3>
@ -485,7 +417,7 @@
<span></span>
</a>
unpackProfile
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L210" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L213" rel="nofollow">
[src]
</a>
</h3>
@ -519,7 +451,7 @@
<span></span>
</a>
copyDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L256" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L259" rel="nofollow">
[src]
</a>
</h3>
@ -558,7 +490,7 @@
<span></span>
</a>
copyDirectoryCompatibityMode
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L272" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L275" rel="nofollow">
[src]
</a>
</h3>
@ -597,7 +529,7 @@
<span></span>
</a>
copyFile
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L281" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L284" rel="nofollow">
[src]
</a>
</h3>
@ -632,7 +564,7 @@
<span></span>
</a>
validateProfileFirstRun
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L292" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L295" rel="nofollow">
[src]
</a>
</h3>
@ -660,6 +592,190 @@
<br>
| profileDirectory | String | |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L321" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L331" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L343" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
<br>
| port | int | the port to wait for the proxy to be ready on. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L358" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds. If the timeout is zero or less the check is disabled and always returns true.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
<br>
| port | int | the port to wait for the proxy to be ready on. |
<br>
| host | String | the host to wait for the proxy to be ready on. |
</p>
<h3>
<a href="#checkifportisoccupied-src" rel="nofollow">
<span></span>
</a>
checkifPortIsOccupied
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L376" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| port | int | |
<br>
| host | String | |
</p>
<h3>
<a href="#setproxytimeouttime-src" rel="nofollow">
<span></span>
</a>
setProxyTimeoutTime
<a href="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L391" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Alters the proxy timeout to customized value time in seconds. May be zero.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: void
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| time | int | |
</p>
<div id="sourcecode">
<span id="sourcehead">
<strong>

View File

@ -22,6 +22,7 @@ package: net.i2p.i2pfirefox
<li>java.io.IOException</li>
<li>java.io.InputStream</li>
<li>java.io.OutputStream</li>
<li>java.net.Socket</li>
<li>java.nio.file.Files</li>
<li>java.nio.file.StandardCopyOption</li>
<li>java.util.logging.FileHandler</li>
@ -34,51 +35,23 @@ package: net.i2p.i2pfirefox
## Member Variables
## Methods
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L36)
### validateUserDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L52)
> static FileHandler fh;
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
+ Access: private
+ Modifiers: final
This method has no parameters.
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L37)
> // private final int DEFAULT_TIMEOUT = 200;
### isWindows [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L98)
+ Description:
+ Access: protected
+ Modifiers: static
+ return: boolean
This method has no parameters.
### println [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L110)
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| line | String | |
### logFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L112)
+ Description:
+ Access: private
+ Modifiers: static
+ return: File
This method has no parameters.
## Methods
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L128)
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L131)
+ Description: get the runtime directory creating it if create=true
+ Access: protected
@ -91,7 +64,7 @@ This method has no parameters.
| override | String | |
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L145)
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L148)
+ Description: get the correct runtime directory
+ Access: protected
@ -103,7 +76,7 @@ This method has no parameters.
| override | String | |
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192)
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L195)
+ Description: get the profile directory creating it if necessary
+ Access: protected
@ -116,7 +89,7 @@ This method has no parameters.
| browser | String | |
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L204)
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L207)
+ Description:
+ Access: protected
@ -129,7 +102,7 @@ This method has no parameters.
| browser | String | |
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L210)
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L213)
+ Description:
+ Access: protected
@ -142,7 +115,7 @@ This method has no parameters.
| base | String | |
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L256)
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L259)
+ Description:
+ Access: protected
@ -157,7 +130,7 @@ This method has no parameters.
| base | String | |
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L272)
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L275)
+ Description:
+ Access: private
@ -172,7 +145,7 @@ This method has no parameters.
| base | String | |
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L281)
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L284)
+ Description:
+ Access: private
@ -185,7 +158,7 @@ This method has no parameters.
| destinationFile | File | |
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L292)
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L295)
+ Description:
+ Access: public
@ -197,3 +170,71 @@ This method has no parameters.
| profileDirectory | String | |
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L321)
+ 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]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L331)
+ 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]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L343)
+ 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]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L358)
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds. If the timeout is zero or less the check is disabled and always returns true.
+ 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]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L376)
+ Description:
+ Access: private
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| port | int | |
| host | String | |
### setProxyTimeoutTime [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L391)
+ Description: Alters the proxy timeout to customized value time in seconds. May be zero.
+ Access: public
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| time | int | |

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -182,10 +187,10 @@
java.io.IOException
</li>
<li>
java.net.Socket
java.util.ArrayList
</li>
<li>
java.util.ArrayList
java.util.concurrent.TimeUnit
</li>
</ul>
<br>
@ -214,25 +219,6 @@
Modifiers: final
</li>
</ul>
<h4>
<a href="#int-default-timeout-src" rel="nofollow">
<span></span>
</a>
int DEFAULT_TIMEOUT
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L" rel="nofollow">
[src]
</a>
</h4>
<blockquote></blockquote>
<ul>
<li>
Access: private
<br>
</li>
<li>
Modifiers: final
</li>
</ul>
<h4>
<a href="#process-p-src" rel="nofollow">
<span></span>
@ -279,7 +265,7 @@
<span></span>
</a>
FIND_FIREFOX_SEARCH_PATHS_UNIX
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L45" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L44" rel="nofollow">
[src]
</a>
</h3>
@ -308,7 +294,7 @@
<span></span>
</a>
FIND_FIREFOX_SEARCH_PATHS_OSX
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L60" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L59" rel="nofollow">
[src]
</a>
</h3>
@ -337,7 +323,7 @@
<span></span>
</a>
FIND_FIREFOX_SEARCH_PATHS_WINDOWS
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L77" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L76" rel="nofollow">
[src]
</a>
</h3>
@ -366,7 +352,7 @@
<span></span>
</a>
FIND_ALL_FIREFOX_SEARCH_PATHS
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L113" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L112" rel="nofollow">
[src]
</a>
</h3>
@ -395,7 +381,7 @@
<span></span>
</a>
FIND_FIREFOX_SEARCH_PATHS
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L133" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L132" rel="nofollow">
[src]
</a>
</h3>
@ -424,7 +410,7 @@
<span></span>
</a>
NEARBY_FIREFOX_SEARCH_PATHS
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L147" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L146" rel="nofollow">
[src]
</a>
</h3>
@ -453,7 +439,7 @@
<span></span>
</a>
FIREFOX_FINDER
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L203" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L202" rel="nofollow">
[src]
</a>
</h3>
@ -482,7 +468,7 @@
<span></span>
</a>
getOperatingSystem
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L215" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L214" rel="nofollow">
[src]
</a>
</h3>
@ -511,7 +497,7 @@
<span></span>
</a>
onlyValidFirefoxes
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L237" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L236" rel="nofollow">
[src]
</a>
</h3>
@ -537,7 +523,7 @@
<span></span>
</a>
topFirefox
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L257" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L256" rel="nofollow">
[src]
</a>
</h3>
@ -563,7 +549,7 @@
<span></span>
</a>
topFirefox
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L286" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L285" rel="nofollow">
[src]
</a>
</h3>
@ -593,7 +579,7 @@
<span></span>
</a>
defaultProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L304" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L303" rel="nofollow">
[src]
</a>
</h3>
@ -619,7 +605,7 @@
<span></span>
</a>
defaultProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L316" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L315" rel="nofollow">
[src]
</a>
</h3>
@ -649,7 +635,7 @@
<span></span>
</a>
privateProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L330" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L329" rel="nofollow">
[src]
</a>
</h3>
@ -675,7 +661,7 @@
<span></span>
</a>
privateProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L343" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L342" rel="nofollow">
[src]
</a>
</h3>
@ -705,7 +691,7 @@
<span></span>
</a>
headlessProcessBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L365" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L364" rel="nofollow">
[src]
</a>
</h3>
@ -735,7 +721,7 @@
<span></span>
</a>
processBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L388" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L387" rel="nofollow">
[src]
</a>
</h3>
@ -760,166 +746,12 @@
<br>
| args | String[] | the extended arguments to pass to the Firefox binary. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L422" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L432" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L444" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
<br>
| port | int | the port to wait for the proxy to be ready on. |
</p>
<h3>
<a href="#waitforproxy-src" rel="nofollow">
<span></span>
</a>
waitForProxy
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L457" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the proxy is ready false if it is not.
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| timeout | int | the number of seconds to wait for the proxy to be ready. |
<br>
| port | int | the port to wait for the proxy to be ready on. |
<br>
| host | String | the host to wait for the proxy to be ready on. |
</p>
<h3>
<a href="#checkifportisoccupied-src" rel="nofollow">
<span></span>
</a>
checkifPortIsOccupied
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L471" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| port | int | |
<br>
| host | String | |
</p>
<h3>
<a href="#usabilitymode-src" rel="nofollow">
<span></span>
</a>
usabilityMode
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L481" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L413" rel="nofollow">
[src]
</a>
</h3>
@ -945,7 +777,7 @@
<span></span>
</a>
launchAndDetatch
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L488" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L420" rel="nofollow">
[src]
</a>
</h3>
@ -977,7 +809,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L551" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L493" rel="nofollow">
[src]
</a>
</h3>
@ -1009,7 +841,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L575" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L517" rel="nofollow">
[src]
</a>
</h3>
@ -1039,7 +871,7 @@
<span></span>
</a>
launch
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L585" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L527" rel="nofollow">
[src]
</a>
</h3>
@ -1065,7 +897,7 @@
<span></span>
</a>
ValidURL
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L587" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L529" rel="nofollow">
[src]
</a>
</h3>
@ -1098,7 +930,7 @@
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L598" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L540" rel="nofollow">
[src]
</a>
</h3>
@ -1131,7 +963,7 @@
<span></span>
</a>
sleep
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L627" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefox.java#L573" rel="nofollow">
[src]
</a>
</h3>

View File

@ -19,8 +19,8 @@ package: net.i2p.i2pfirefox
<ul>
<li>java.io.File</li>
<li>java.io.IOException</li>
<li>java.net.Socket</li>
<li>java.util.ArrayList</li>
<li>java.util.concurrent.TimeUnit</li>
</ul>
</details>
@ -33,13 +33,6 @@ package: net.i2p.i2pfirefox
+ Access: private
+ Modifiers: final
#### int DEFAULT_TIMEOUT [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
>
+ Access: private
+ Modifiers: final
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
>
@ -55,7 +48,7 @@ package: net.i2p.i2pfirefox
## Methods
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L45)
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L44)
+ Description:
+ Access: private
@ -65,7 +58,7 @@ package: net.i2p.i2pfirefox
This method has no parameters.
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L60)
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L59)
+ Description:
+ Access: private
@ -75,7 +68,7 @@ This method has no parameters.
This method has no parameters.
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L77)
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L76)
+ Description:
+ Access: private
@ -85,7 +78,7 @@ This method has no parameters.
This method has no parameters.
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L113)
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L112)
+ Description:
+ Access: private
@ -95,7 +88,7 @@ This method has no parameters.
This method has no parameters.
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L133)
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L132)
+ Description:
+ Access: private
@ -105,7 +98,7 @@ This method has no parameters.
This method has no parameters.
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L147)
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L146)
+ Description:
+ Access: private
@ -115,7 +108,7 @@ This method has no parameters.
This method has no parameters.
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L203)
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L202)
+ Description:
+ Access: private
@ -125,7 +118,7 @@ This method has no parameters.
This method has no parameters.
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L215)
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L214)
+ Description:
+ Access: private
@ -135,7 +128,7 @@ This method has no parameters.
This method has no parameters.
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L237)
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L236)
+ 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
@ -144,7 +137,7 @@ This method has no parameters.
This method has no parameters.
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L257)
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L256)
+ Description: Return the best available Firefox from the list of Firefoxes we have.
+ Access: public
@ -153,7 +146,7 @@ This method has no parameters.
This method has no parameters.
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L286)
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L285)
+ 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
@ -164,7 +157,7 @@ This method has no parameters.
| overrideFirefox | String | |
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L304)
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L303)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
+ Access: public
@ -173,7 +166,7 @@ This method has no parameters.
This method has no parameters.
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L316)
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L315)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
+ Access: public
@ -184,7 +177,7 @@ This method has no parameters.
| args | String[] | the args to pass to the Firefox binary |
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L330)
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L329)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
+ Access: public
@ -193,7 +186,7 @@ This method has no parameters.
This method has no parameters.
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L343)
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L342)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
+ Access: public
@ -204,7 +197,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Firefox binary |
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L365)
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L364)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --headless flag to open without a window.
+ Access: public
@ -215,7 +208,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Firefox binary |
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L388)
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L387)
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile with a specific set of extended arguments.
+ Access: public
@ -226,64 +219,7 @@ This method has no parameters.
| args | String[] | the extended arguments to pass to the Firefox binary. |
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L422)
+ 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]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L432)
+ 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]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L444)
+ 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]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L457)
+ 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]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L471)
+ Description:
+ Access: private
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| port | int | |
| host | String | |
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L481)
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L413)
+ Description:
+ Access: private
@ -292,7 +228,7 @@ This method has no parameters.
This method has no parameters.
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L488)
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L420)
+ Description:
+ Access: public
@ -304,7 +240,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L551)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L493)
+ 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
@ -316,7 +252,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L575)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L517)
+ 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
@ -327,7 +263,7 @@ This method has no parameters.
| privateWindow | boolean | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L585)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L527)
+ 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
@ -336,7 +272,7 @@ This method has no parameters.
This method has no parameters.
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L587)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L529)
+ Description:
+ Access: private
@ -348,7 +284,7 @@ This method has no parameters.
| inUrl | String | |
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L598)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L540)
+ Description:
+ Access: public
@ -360,7 +296,7 @@ This method has no parameters.
| args | String[] | |
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L627)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L573)
+ Description:
+ Access: private

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -181,6 +186,9 @@
<li>
java.io.File
</li>
<li>
java.io.FileNotFoundException
</li>
<li>
java.io.FileReader
</li>
@ -190,6 +198,9 @@
<li>
java.io.IOException
</li>
<li>
java.util.Scanner
</li>
</ul>
<br>
<h2>
@ -209,7 +220,7 @@
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32" rel="nofollow">
[src]
</a>
</h3>
@ -242,7 +253,7 @@
<span></span>
</a>
validateProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53" rel="nofollow">
[src]
</a>
</h3>
@ -271,11 +282,11 @@
| profileDirectory | String | the profile directory to check |
</p>
<h3>
<a href="#derestricthttps-src" rel="nofollow">
<a href="#derestricthttpsandsetuphomepage-src" rel="nofollow">
<span></span>
</a>
deRestrictHTTPS
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84" rel="nofollow">
deRestrictHTTPSAndSetupHomepage
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86" rel="nofollow">
[src]
</a>
</h3>
@ -308,7 +319,7 @@
<span></span>
</a>
undoHttpsOnlyMode
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109" rel="nofollow">
[src]
</a>
</h3>
@ -336,12 +347,82 @@
<br>
| fileToBeModified | File | |
</p>
<h3>
<a href="#undohomepage-src" rel="nofollow">
<span></span>
</a>
undoHomepage
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L115" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| fileToBeModified | File | |
</p>
<h3>
<a href="#undovalue-src" rel="nofollow">
<span></span>
</a>
undoValue
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| oldString | String | |
<br>
| newString | String | |
<br>
| fileToBeModified | File | |
</p>
<h3>
<a href="#validatefile-src" rel="nofollow">
<span></span>
</a>
validateFile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172" rel="nofollow">
[src]
</a>
</h3>
@ -374,7 +455,7 @@
<span></span>
</a>
validateExtensionDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199" rel="nofollow">
[src]
</a>
</h3>

View File

@ -19,9 +19,11 @@ package: net.i2p.i2pfirefox
<ul>
<li>java.io.BufferedReader</li>
<li>java.io.File</li>
<li>java.io.FileNotFoundException</li>
<li>java.io.FileReader</li>
<li>java.io.FileWriter</li>
<li>java.io.IOException</li>
<li>java.util.Scanner</li>
</ul>
</details>
@ -29,7 +31,7 @@ package: net.i2p.i2pfirefox
## Methods
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32)
+ Description:
+ Access: public
@ -41,7 +43,7 @@ package: net.i2p.i2pfirefox
| args | String[] | |
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51)
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53)
+ Description: Return true if the profile directory is valid.
+ Access: public
@ -53,7 +55,7 @@ package: net.i2p.i2pfirefox
| profileDirectory | String | the profile directory to check |
### deRestrictHTTPS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84)
### deRestrictHTTPSAndSetupHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86)
+ Description:
+ Access: private
@ -65,7 +67,7 @@ package: net.i2p.i2pfirefox
| profile | String | |
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104)
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109)
+ Description:
+ Access: private
@ -77,7 +79,33 @@ package: net.i2p.i2pfirefox
| fileToBeModified | File | |
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140)
### undoHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L115)
+ Description:
+ Access: private
+ Modifiers: static
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| fileToBeModified | File | |
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138)
+ Description:
+ Access: private
+ Modifiers: static
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| oldString | String | |
| newString | String | |
| fileToBeModified | File | |
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172)
+ Description: Return true if the file is valid.
+ Access: public
@ -89,7 +117,7 @@ package: net.i2p.i2pfirefox
| file | String | the file to check |
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167)
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199)
+ Description: Return true if the extension directory is valid.
+ Access: public

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -129,6 +134,51 @@
</a>
Packages for various operating systems
</h1>
<h2>
<a href="#making-a-new-release" rel="nofollow">
<span></span>
</a>
Making a new release:
</h2>
<p>
Releases can be created in a mostly automatic way. With a working Java toolchain
including jpackage installed:
</p>
<ol>
<li>
Set a
<code>
GITHUB_TOKEN
</code>
in the environment containing an API key.
</li>
<li>
Update the version number(
<code>
GITHUB_TAG
</code>
) and version title(
<code>
GITHUB_NAME
</code>
) in
<code>
config.sh
</code>
</li>
<li>
On a Linux machine, run
<code>
./release.sh
</code>
</li>
<li>
On a Windows machine, run
<code>
./windows-release.sh
</code>
</li>
</ol>
<h2>
<a href="#windows" rel="nofollow">
<span></span>
@ -168,15 +218,15 @@
</a>
MSI
</h3>
<p>
Requires the Wixl toolset.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Requires the Wixl toolset.
</p>
<p>
run:
<code>
@ -189,15 +239,15 @@
</a>
EXE
</h4>
<p>
No special requirements.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
No special requirements.
</p>
<p>
run:
<code>
@ -210,15 +260,15 @@
</a>
Portable(.zip)
</h3>
<p>
No special requirements.
</p>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
No special requirements.
</p>
<p>
run:
<code>
@ -247,15 +297,15 @@
</a>
Debian
</h3>
<p>
Make sure you have a recent Java and jpackage.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Make sure you have a recent Java and jpackage.
</p>
<p>
run:
<code>
@ -268,12 +318,6 @@
</a>
Fedora
</h3>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
I&#39;m a Debian user and don&#39;t have a Fedora machine set up right now. Therefore,
I build Fedora packages in a container.
@ -283,6 +327,12 @@
Adoptium&#39;s third-party repository to supply the JDK I use to build the fedora
package.
</p>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
run:
<code>
@ -295,15 +345,15 @@
</a>
Portable(.zip)
</h3>
<p>
Details are platform dependent. Same build-deps as everything else.
</p>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Details are platform dependent. Same build-deps as everything else.
</p>
<p>
run:
<code>

View File

@ -1,6 +1,18 @@
Packages for various operating systems
======================================
Making a new release:
---------------------
Releases can be created in a mostly automatic way. With a working Java toolchain
including jpackage installed:
0. Set a `GITHUB_TOKEN` in the environment containing an API key.
1. Update the version number(`GITHUB_TAG`) and version title(`GITHUB_NAME`) in `config.sh`
2. On a Linux machine, run `./release.sh`
3. On a Windows machine, run `./windows-release.sh`
Windows
-------
@ -14,26 +26,26 @@ run: `windows-release.sh` only *after* release.sh on a Linux machine.
### MSI
#### Status: Works. Maintained.
Requires the Wixl toolset.
#### Status: Works. Maintained.
run: `./windows.sh`
#### EXE
#### Status: Works. Maintained.
No special requirements.
#### Status: Works. Maintained.
run: `./windows-exe.sh`
### Portable(.zip)
#### Status: Unknown. Maintained.
No special requirements.
#### Status: Unknown. Maintained.
run: `./windows-portable.sh`
Linux
@ -46,16 +58,14 @@ Java tools in your `PATH`.
### Debian
#### Status: Works. Maintained.
Make sure you have a recent Java and jpackage.
#### Status: Works. Maintained.
run: `ant debian`
### Fedora
#### Status: Unknown. Maintained.
I'm a Debian user and don't have a Fedora machine set up right now. Therefore,
I build Fedora packages in a container.
@ -63,14 +73,16 @@ Fedora doesn't have a jpackage in their repositories as far as I can tell so I u
Adoptium's third-party repository to supply the JDK I use to build the fedora
package.
#### Status: Unknown. Maintained.
run: `ant fedora`
### Portable(.zip)
#### Status: Works. Maintained.
Details are platform dependent. Same build-deps as everything else.
#### Status: Works. Maintained.
run: `ant jpackage`
OSX

1062
RELEASES.html Normal file

File diff suppressed because it is too large Load Diff

12
RELEASES.md Normal file
View File

@ -0,0 +1,12 @@
Sums for release 0.0.31
==============================
- [b4281b944433069681ece1124bf5ac1a527dcef9d29ce999ab0dac7a0bbee70e i2pfirefox.jar](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pfirefox.jar)
- [5b21bb74ce6715bd48bcc019a1165f1f27a15bd831c1a723d8b90f7cb82498df i2pfirefox.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pfirefox.zip)
- [86b0ae9040d64651cc13027a9861d0fdf2afaac4a4cdb9cbef69e82cc92adb67 i2pbrowser.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.zip)
- [3a08a52a41463e0b5324101eb097f533bbac8b7db44964a2f90d305247320ecc i2pbrowser_0.0.31_.deb](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser_0.0.31_.deb)
- [67739c09653b52d8bdb75b2c742aa8c21a8a7c278b7c05e25957747afede218b i2pbrowser-0.0.31_.rpm](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser-0.0.31_.rpm)
- [f40ef6126af9fd93272c2935e1fb056a6aceb2dfbbb0aafe1847708c40a3220a i2pbrowser.msi](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.msi)
- [33ecc96815f3e6934112f138b54bb64fde93565dcafae000d73b2539449f10ed i2pbrowser.exe](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.exe)
- [6a620cd58fda291945fa010e3411fac817f2b9f87f572b67697de0e16e694efd i2pbrowser-portable.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser-portable.zip)

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

View File

@ -317,7 +317,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<delete dir="plugin/eepsite/docroot/torrents/" />
<!-- get version number -->
<buildnumber file="scripts/build.number" />
<property name="release.number" value="0.0.30" />
<property name="release.number" value="0.0.34" />
<!-- make the update xpi2p -->
<!-- this contains everything except i2ptunnel.config -->

View File

@ -1,6 +1,6 @@
#! /usr/bin/env sh
export GITHUB_USER=eyedeekay
export GITHUB_REPO=i2p.plugins.firefox
export GITHUB_NAME="Add sha256sums to releases"
export GITHUB_NAME="wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that)"
export GITHUB_DESCRIPTION=$(cat CHANGES.md)
export GITHUB_TAG=0.0.30
export GITHUB_TAG=0.0.34

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO

11
osx-dmg.sh Executable file
View File

@ -0,0 +1,11 @@
#! /usr/bin/env sh
. ./config.sh
jpackage \
--verbose \
--type dmg \
--license-file LICENSE.md \
--name i2pbrowser \
--app-version "$GITHUB_TAG" \
--input src/build \
--main-jar i2pfirefox.jar \
--main-class net.i2p.i2pfirefox.I2PBrowser

61
packages.sh Executable file
View File

@ -0,0 +1,61 @@
#! /usr/bin/env sh
. ./config.sh
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pfirefox.jar"
echo "Downloaded jar"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pfirefox.zip"
echo "Downloaded freestanding zip"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pbrowser.zip"
echo "Downloaded jpackage zip"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pbrowser_${GITHUB_TAG}_.deb"
echo "Downloaded debian package"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pbrowser-${GITHUB_TAG}_.rpm"
echo "Downloaded fedora package"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pbrowser.msi"
echo "Downloaded MSI package"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pbrowser.exe"
echo "Downloaded EXE package"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pbrowser-portable.zip"
echo "Downloaded Windows ZIP package"
echo "Sums for release ${GITHUB_TAG}" | tee RELEASES.md
echo "==============================" | tee -a RELEASES.md
echo "" | tee -a RELEASES.md
echo "- [$(sha256sum i2pfirefox.jar)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.jar)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pfirefox.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.zip)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.zip)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser_${GITHUB_TAG}_.deb)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser_${GITHUB_TAG}_amd64.deb)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser-${GITHUB_TAG}_.rpm)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm.rpm)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser.msi)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.msi)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser.exe)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.exe)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser-portable.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser-portable.zip)" | tee -a RELEASES.md
echo "" | tee -a RELEASES.md
git add RELEASES.md
edgar
git commit -am "Update releases page"
git push --all

View File

@ -19,11 +19,11 @@ github-release edit --user "${GITHUB_USER}" \
--description "${GITHUB_DESCRIPTION}" \
--tag "${GITHUB_TAG}"; true
echo "Relase ${GITHUB_TAG} setup"
jarsum=$(sha256sum "i2pfirefox.jar")
jarsum=$(sha256sum "src/build/i2pfirefox.jar")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a .jar. ${jarsum}" \
--label "I2P Browser launcher as a .jar. Useful as a library or for advanced users. ${jarsum}" \
--name "i2pfirefox.jar" \
--file "src/build/i2pfirefox.jar" \
--replace
@ -51,7 +51,7 @@ github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a Jpackage inside of a Debian package. ${debsum}" \
--name "i2pbrowser_${GITHUB_TAG}_.deb" \
--name "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
--file "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
--replace
echo "Uploaded debian package"
@ -60,7 +60,7 @@ github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a Jpackage inside of a Fedora package. ${rpmsum}" \
--name "i2pbrowser-${GITHUB_TAG}_.rpm" \
--name "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
--file "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
--replace
echo "Uploaded fedora package"

Binary file not shown.

Binary file not shown.

View File

@ -196,6 +196,10 @@ public class I2PBrowser extends I2PCommonBrowser {
if (arg.equals("-usability")) {
i2pBrowser.usability = true;
}
if (arg.equals("-noproxycheck")) {
println("zeroing out proxy check");
i2pBrowser.setProxyTimeoutTime(0);
}
if (!arg.startsWith("-")) {
visitURL.add(ValidURL(arg));
}

View File

@ -1,8 +1,6 @@
package net.i2p.i2pfirefox;
import java.io.File;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
/**
@ -21,7 +19,6 @@ import java.util.ArrayList;
*/
public class I2PChromium extends I2PCommonBrowser {
private final String[] CHROMIUM_SEARCH_PATHS = CHROMIUM_FINDER();
private final int DEFAULT_TIMEOUT = 200;
private Process p = null;
/**
@ -483,71 +480,6 @@ public class I2PChromium extends I2PCommonBrowser {
}
}
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of 200 seconds.
*
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy() { return waitForProxy(DEFAULT_TIMEOUT); }
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout) {
return waitForProxy(timeout, 4444);
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port) {
return waitForProxy(timeout, port, "localhost");
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @param host the host to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port, String host) {
for (int i = 0; i < timeout; i++) {
if (checkifPortIsOccupied(port, host)) {
return true;
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return false;
}
private boolean checkifPortIsOccupied(int port, String host) {
try {
Socket socket = new Socket(host, port);
socket.close();
return true;
} catch (IOException e) {
return false;
}
}
public Process launchAndDetatch(boolean privateWindow, String[] url) {
validateUserDir();
if (waitForProxy()) {
@ -659,6 +591,10 @@ public class I2PChromium extends I2PCommonBrowser {
if (arg.equals("-usability")) {
I2PChromiumProfileBuilder.usability = true;
}
if (arg.equals("-noproxycheck")) {
println("zeroing out proxy check");
i2pChromium.setProxyTimeoutTime(0);
}
if (!arg.startsWith("-")) {
// check if it's a URL
visitURL.add(ValidURL(arg));

View File

@ -6,6 +6,7 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.logging.FileHandler;
@ -32,6 +33,8 @@ import java.util.zip.ZipInputStream;
public class I2PCommonBrowser {
static Logger logger = Logger.getLogger("browserlauncher");
static FileHandler fh;
// private final int DEFAULT_TIMEOUT = 200;
private static int CONFIGURED_TIMEOUT = 200;
public I2PCommonBrowser() {
try {
@ -307,4 +310,83 @@ public class I2PCommonBrowser {
}
return false;
}
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of 200 seconds.
*
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy() { return waitForProxy(CONFIGURED_TIMEOUT); }
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout) {
return waitForProxy(timeout, 4444);
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port) {
return waitForProxy(timeout, port, "localhost");
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
* If the timeout is zero or less, the check is disabled and always
* returns true.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @param host the host to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port, String host) {
println("waiting up to " + timeout + "seconds for a proxy");
if (timeout <= 0) {
return true;
}
for (int i = 0; i < timeout; i++) {
println("Waiting for proxy");
if (checkifPortIsOccupied(port, host)) {
return true;
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return false;
}
private boolean checkifPortIsOccupied(int port, String host) {
try {
Socket socket = new Socket(host, port);
socket.close();
return true;
} catch (IOException e) {
return false;
}
}
/**
* Alters the proxy timeout to customized value time, in seconds.
* May be zero.
*
* @param time
*/
public void setProxyTimeoutTime(int time) { CONFIGURED_TIMEOUT = time; }
}

View File

@ -2,8 +2,8 @@ package net.i2p.i2pfirefox;
import java.io.File;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
/**
* I2PFirefox.java
@ -21,7 +21,6 @@ import java.util.ArrayList;
*/
public class I2PFirefox extends I2PCommonBrowser {
private final String[] FIREFOX_SEARCH_PATHS = FIREFOX_FINDER();
private final int DEFAULT_TIMEOUT = 200;
private Process p = null;
public static boolean usability = false;
@ -391,16 +390,15 @@ public class I2PFirefox extends I2PCommonBrowser {
int arglength = 0;
if (args != null)
arglength = args.length;
String[] newArgs = new String[arglength + 5];
String[] newArgs = new String[arglength + 4];
newArgs[0] = firefox;
newArgs[1] = "-attach-console";
newArgs[2] = "--new-instance";
newArgs[3] = "--profile";
newArgs[4] = I2PFirefoxProfileBuilder.profileDirectory();
newArgs[1] = "--new-instance";
newArgs[2] = "--profile";
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory();
if (args != null) {
if (arglength > 0) {
for (int i = 0; i < arglength; i++) {
newArgs[i + 5] = args[i];
newArgs[i + 4] = args[i];
}
}
}
@ -412,72 +410,6 @@ public class I2PFirefox extends I2PCommonBrowser {
}
}
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of 200 seconds.
*
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy() { return waitForProxy(DEFAULT_TIMEOUT); }
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout) {
return waitForProxy(timeout, 4444);
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port) {
return waitForProxy(timeout, port, "localhost");
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @param host the host to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port, String host) {
for (int i = 0; i < timeout; i++) {
println("Waiting for proxy");
if (checkifPortIsOccupied(port, host)) {
return true;
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return false;
}
private boolean checkifPortIsOccupied(int port, String host) {
try {
Socket socket = new Socket(host, port);
socket.close();
return true;
} catch (IOException e) {
return false;
}
}
private String usabilityMode() {
if (usability) {
return "usability";
@ -508,13 +440,23 @@ public class I2PFirefox extends I2PCommonBrowser {
try {
Process hp = hpb.start();
try {
int hev = hp.waitFor();
boolean hev = hp.waitFor(5, TimeUnit.SECONDS);
println("Headless browser run completed, exit: " + hev);
if (!hev)
hp.destroy();
hev = hp.waitFor(5, TimeUnit.SECONDS);
if (hp.isAlive()) {
int forcedExitCode = hp.destroyForcibly().waitFor();
println("Headless browser run forcibly terminated, exit: " +
forcedExitCode);
}
int exitCode = hp.exitValue();
println("Headless browser run completed, exit: " + exitCode);
} catch (InterruptedException e) {
println(e.toString());
println("Headless browser error " + e.toString());
}
} catch (IOException e) {
println(e.toString());
println("Headless browser error " + e.toString());
}
}
}
@ -599,6 +541,8 @@ public class I2PFirefox extends I2PCommonBrowser {
validateUserDir();
boolean privateBrowsing = false;
println("checking for private browsing");
println("I2PFirefox");
I2PFirefox i2pFirefox = new I2PFirefox();
ArrayList<String> visitURL = new ArrayList<String>();
if (args != null) {
if (args.length > 0) {
@ -611,6 +555,10 @@ public class I2PFirefox extends I2PCommonBrowser {
if (arg.equals("-usability")) {
usability = true;
}
if (arg.equals("-noproxycheck")) {
println("zeroing out proxy check");
i2pFirefox.setProxyTimeoutTime(0);
}
if (!arg.startsWith("-")) {
// check if it's a URL
visitURL.add(ValidURL(arg));
@ -618,8 +566,6 @@ public class I2PFirefox extends I2PCommonBrowser {
}
}
}
println("I2PFirefox");
I2PFirefox i2pFirefox = new I2PFirefox();
i2pFirefox.launch(privateBrowsing,
visitURL.toArray(new String[visitURL.size()]));
}

View File

@ -2,9 +2,11 @@ package net.i2p.i2pfirefox;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
/**
* I2PFirefoxProfileChecker.java
@ -78,24 +80,27 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
println("extensions directory is invalid");
return false;
}
return deRestrictHTTPS(profileDir.toString());
return deRestrictHTTPSAndSetupHomepage(profileDir.toString());
}
private static boolean deRestrictHTTPS(String profile) {
private static boolean deRestrictHTTPSAndSetupHomepage(String profile) {
// String profile = profileDirectory();
File profileDir = new File(profile);
if (profileDir.exists()) {
File prefOverrides = new File(profile, "prefs.js");
if (prefOverrides.exists()) {
undoHttpsOnlyMode(prefOverrides);
undoHomepage(prefOverrides);
}
File userSettings = new File(profile, "user.js");
if (userSettings.exists()) {
undoHttpsOnlyMode(userSettings);
undoHomepage(userSettings);
}
File userOverrides = new File(profile, "user-overrides.js");
if (userOverrides.exists()) {
undoHttpsOnlyMode(userOverrides);
undoHomepage(userOverrides);
}
}
return false;
@ -104,6 +109,33 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
private static boolean undoHttpsOnlyMode(File fileToBeModified) {
String oldString = "\"dom.security.https_only_mode\", true";
String newString = "\"dom.security.https_only_mode\", false";
return undoValue(oldString, newString, fileToBeModified);
}
private static boolean undoHomepage(File fileToBeModified) {
String oldString = "\"browser.startup.homepage\", true";
File file = new File("Student.txt");
String newString =
"\"browser.startup.homepage\", \"http://127.0.0.1:7657\"";
try {
try (Scanner scanner = new Scanner(file)) {
// now read the file line by line...
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
if (line.contains("browser.startup.homepage")) {
oldString = line.toString();
return undoValue(oldString, newString, fileToBeModified);
}
}
}
} catch (FileNotFoundException e) {
// handle this
}
return true;
}
private static boolean undoValue(String oldString, String newString,
File fileToBeModified) {
String oldContent = "";
BufferedReader reader = null;
FileWriter writer = null;

View File

@ -15,6 +15,7 @@ github-release upload --user "${GITHUB_USER}" \
--name "i2pbrowser.msi" \
--file "i2pbrowser-${GITHUB_TAG}.msi" \
--replace
echo "Uploaded MSI package"
exesum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.exe")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
@ -23,6 +24,7 @@ github-release upload --user "${GITHUB_USER}" \
--name "i2pbrowser.exe" \
--file "i2pbrowser-${GITHUB_TAG}.exe" \
--replace
echo "Uploaded EXE package"
zipsum=$(sha256sum "i2pbrowser-portable-${GITHUB_TAG}.zip")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \