EepGet.StatusListener
public class DNSOverHTTPS extends Object implements EepGet.StatusListener
Modifier and Type | Class | Description |
---|---|---|
static class |
DNSOverHTTPS.Type |
Constructor | Description |
---|---|
DNSOverHTTPS(I2PAppContext context) |
|
DNSOverHTTPS(I2PAppContext context,
SSLEepGet.SSLState sslState) |
Modifier and Type | Method | Description |
---|---|---|
void |
attemptFailed(String url,
long bytesTransferred,
long bytesRemaining,
int currentAttempt,
int numRetries,
Exception cause) |
|
void |
attempting(String url) |
|
void |
bytesTransferred(long alreadyTransferred,
int currentWrite,
long bytesTransferred,
long bytesRemaining,
String url) |
alreadyTransferred - total of all attempts, not including currentWrite
If nonzero on the first call, a partial file of that length was found,
_and_ the server supports resume.
|
static void |
clearCaches() |
|
void |
headerReceived(String url,
int attemptNum,
String key,
String val) |
Use the Date header as a backup time source.
|
String |
lookup(String host) |
V4_ONLY
|
String |
lookup(String host,
DNSOverHTTPS.Type type) |
Lookup in cache, then query servers
|
static void |
main(String[] args) |
|
void |
transferComplete(long alreadyTransferred,
long bytesTransferred,
long bytesRemaining,
String url,
String outputFile,
boolean notModified) |
|
void |
transferFailed(String url,
long bytesTransferred,
long bytesRemaining,
int currentAttempt) |
public DNSOverHTTPS(I2PAppContext context)
public DNSOverHTTPS(I2PAppContext context, SSLEepGet.SSLState sslState)
public String lookup(String host, DNSOverHTTPS.Type type)
public static void clearCaches()
public void attemptFailed(String url, long bytesTransferred, long bytesRemaining, int currentAttempt, int numRetries, Exception cause)
attemptFailed
in interface EepGet.StatusListener
public void bytesTransferred(long alreadyTransferred, int currentWrite, long bytesTransferred, long bytesRemaining, String url)
EepGet.StatusListener
bytesTransferred
in interface EepGet.StatusListener
public void transferComplete(long alreadyTransferred, long bytesTransferred, long bytesRemaining, String url, String outputFile, boolean notModified)
transferComplete
in interface EepGet.StatusListener
public void transferFailed(String url, long bytesTransferred, long bytesRemaining, int currentAttempt)
transferFailed
in interface EepGet.StatusListener
public void attempting(String url)
attempting
in interface EepGet.StatusListener
public void headerReceived(String url, int attemptNum, String key, String val)
headerReceived
in interface EepGet.StatusListener
public static void main(String[] args)