|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.util.EepGet
net.i2p.util.SSLEepGet
public class SSLEepGet
HTTPS only, non-proxied only, no retries, no min and max size options, no timeout option Fails on 301 or 302 (doesn't follow redirect) Fails on bad certs (must have a valid cert chain) Self-signed certs or CAs not in the JVM key store must be loaded to be trusted. Since 0.8.2, loads additional trusted CA certs from $I2P/certificates/ssl/ and ~/.i2p/certificates/ssl/
Nested Class Summary | |
---|---|
static class |
SSLEepGet.SSLState
An opaque class for the caller to pass to repeated instantiations of SSLEepGet. |
Nested classes/interfaces inherited from class net.i2p.util.EepGet |
---|
EepGet.AUTH_MODE, EepGet.AuthState, EepGet.CLIStatusListener, EepGet.Gunzipper, EepGet.StatusListener |
Field Summary |
---|
Constructor Summary | |
---|---|
SSLEepGet(I2PAppContext ctx,
OutputStream outputStream,
String url)
A new SSLEepGet with a new SSLState |
|
SSLEepGet(I2PAppContext ctx,
OutputStream outputStream,
String url,
SSLEepGet.SSLState state)
|
|
SSLEepGet(I2PAppContext ctx,
String outputFile,
String url)
A new SSLEepGet with a new SSLState |
|
SSLEepGet(I2PAppContext ctx,
String outputFile,
String url,
SSLEepGet.SSLState state)
|
Method Summary | |
---|---|
protected void |
doFetch(SocketTimeout timeout)
single fetch |
SSLEepGet.SSLState |
getSSLState()
Pass this back to the next SSLEepGet constructor for faster fetches. |
static void |
main(String[] args)
SSLEepGet https://foo/bar or to save cert chain: SSLEepGet -s https://foo/bar |
protected void |
sendRequest(SocketTimeout timeout)
|
Methods inherited from class net.i2p.util.EepGet |
---|
addAuthorization, addHeader, addStatusListener, fetch, fetch, fetch, getContentType, getETag, getLastModified, getNotModified, getRequest, getStatusCode, getStatusText, parseAuthArgs, readChunkLength, readHeaders, setWriteErrorToOutput, stopFetching, suggestName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSLEepGet(I2PAppContext ctx, OutputStream outputStream, String url)
public SSLEepGet(I2PAppContext ctx, OutputStream outputStream, String url, SSLEepGet.SSLState state)
state
- an SSLState retrieved from a previous SSLEepGet with getSSLState(), or null.
This makes repeated fetches from the same host MUCH faster,
and prevents repeated key store loads even for different hosts.public SSLEepGet(I2PAppContext ctx, String outputFile, String url)
public SSLEepGet(I2PAppContext ctx, String outputFile, String url, SSLEepGet.SSLState state)
state
- an SSLState retrieved from a previous SSLEepGet with getSSLState(), or null.
This makes repeated fetches from the same host MUCH faster,
and prevents repeated key store loads even for different hosts.Method Detail |
---|
public static void main(String[] args)
public SSLEepGet.SSLState getSSLState()
protected void doFetch(SocketTimeout timeout) throws IOException
EepGet
doFetch
in class EepGet
timeout
- may be null
IOException
protected void sendRequest(SocketTimeout timeout) throws IOException
sendRequest
in class EepGet
timeout
- may be null
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |