net.i2p.util
public class SSLEepGet extends EepGet
Modifier and Type | Class and Description |
---|---|
static class |
SSLEepGet.SSLState
An opaque class for the caller to pass to repeated instantiations of SSLEepGet.
|
EepGet.CLIStatusListener, EepGet.StatusListener
_aborted, _actualURL, _alreadyTransferred, _bytesRemaining, _bytesTransferred, _contentType, _context, _currentAttempt, _encodingChunked, _etag, _fetchInactivityTimeout, _headersRead, _keepFetching, _lastModified, _listeners, _log, _notModified, _numRetries, _out, _outputFile, _outputStream, _proxy, _proxyIn, _proxyOut, _redirectLocation, _redirects, _shouldProxy, _transferFailed, _url, CONNECT_TIMEOUT, INACTIVITY_TIMEOUT, MAX_COMPLETE_FAILS, USER_AGENT
Constructor and Description |
---|
SSLEepGet(I2PAppContext ctx,
OutputStream outputStream,
String url)
A new SSLEepGet with a new SSLState
|
SSLEepGet(I2PAppContext ctx,
OutputStream outputStream,
String url,
SSLEepGet.SSLState state) |
Modifier and Type | Method and Description |
---|---|
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) |
addStatusListener, fetch, fetch, fetch, getContentType, getETag, getLastModified, getNotModified, getRequest, readChunkLength, readHeaders, stopFetching, suggestName
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 static void main(String[] args)
public SSLEepGet.SSLState getSSLState()
protected void doFetch(SocketTimeout timeout) throws IOException
EepGet
doFetch
in class EepGet
timeout
- may be nullIOException
protected void sendRequest(SocketTimeout timeout) throws IOException
sendRequest
in class EepGet
timeout
- may be nullIOException