## net.i2p.util
Class EepGet

    java.lang.Object
      net.i2p.util.EepGet

    public class EepGet

extends java.lang.Object

EepGet [-p localhost:4444] [-n #retries] [-o outputFile] [-m markSize lineLen] url

Nested Class Summary
`static interface` `EepGet.StatusListener`

Constructor Summary
`EepGet(I2PAppContext ctx, boolean shouldProxy, java.lang.String proxyHost, int proxyPort, int numRetries, long minSize, long maxSize, java.lang.String outputFile, java.io.OutputStream outputStream, java.lang.String url, boolean allowCaching, java.lang.String etag, java.lang.String postData)`
`EepGet(I2PAppContext ctx, boolean shouldProxy, java.lang.String proxyHost, int proxyPort, int numRetries, long minSize, long maxSize, java.lang.String outputFile, java.io.OutputStream outputStream, java.lang.String url, boolean allowCaching, java.lang.String etag, java.lang.String lastModified, java.lang.String postData)`
`EepGet(I2PAppContext ctx, boolean shouldProxy, java.lang.String proxyHost, int proxyPort, int numRetries, java.lang.String outputFile, java.lang.String url)`
`EepGet(I2PAppContext ctx, boolean shouldProxy, java.lang.String proxyHost, int proxyPort, int numRetries, java.lang.String outputFile, java.lang.String url, boolean allowCaching, java.lang.String etag)`
`EepGet(I2PAppContext ctx, boolean shouldProxy, java.lang.String proxyHost, int proxyPort, int numRetries, java.lang.String outputFile, java.lang.String url, boolean allowCaching, java.lang.String etag, java.lang.String lastModified)`
`EepGet(I2PAppContext ctx, boolean shouldProxy, java.lang.String proxyHost, int proxyPort, int numRetries, java.lang.String outputFile, java.lang.String url, java.lang.String postData)`
`EepGet(I2PAppContext ctx, int numRetries, java.lang.String outputFile, java.lang.String url)`
`EepGet(I2PAppContext ctx, int numRetries, java.lang.String outputFile, java.lang.String url, boolean allowCaching)`
`EepGet(I2PAppContext ctx, java.lang.String proxyHost, int proxyPort, int numRetries, java.lang.String outputFile, java.lang.String url)`
`EepGet(I2PAppContext ctx, java.lang.String proxyHost, int proxyPort, int numRetries, java.lang.String outputFile, java.lang.String url, boolean allowCaching)`

Method Summary
`void` `addStatusListener(EepGet.StatusListener lsnr)`
`boolean` `fetch()` Blocking fetch, returning true if the URL was retrieved, false if all retries failed
`boolean` `fetch(long fetchHeaderTimeout)` Blocking fetch, timing out individual attempts if the HTTP response headers don't come back in the time given.
`boolean` `fetch(long fetchHeaderTimeout, long totalTimeout, long inactivityTimeout)`
`java.lang.String` `getContentType()`
`java.lang.String` `getETag()`
`java.lang.String` `getLastModified()`
`boolean` `getNotModified()`
`static void` `main(java.lang.String[] args)` EepGet [-p localhost:4444] [-n #retries] [-e etag] [-o outputFile] [-m markSize lineLen] url
`void` `stopFetching()`
`static java.lang.String` `suggestName(java.lang.String url)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### EepGet

    public EepGet(I2PAppContext ctx,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url)

### EepGet

    public EepGet(I2PAppContext ctx,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url,
                  boolean allowCaching)

### EepGet

    public EepGet(I2PAppContext ctx,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url)

### EepGet

    public EepGet(I2PAppContext ctx,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url,
                  boolean allowCaching)

### EepGet

    public EepGet(I2PAppContext ctx,
                  boolean shouldProxy,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url)

### EepGet

    public EepGet(I2PAppContext ctx,
                  boolean shouldProxy,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url,
                  java.lang.String postData)

### EepGet

    public EepGet(I2PAppContext ctx,
                  boolean shouldProxy,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url,
                  boolean allowCaching,
                  java.lang.String etag)

### EepGet

    public EepGet(I2PAppContext ctx,
                  boolean shouldProxy,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  java.lang.String outputFile,
                  java.lang.String url,
                  boolean allowCaching,
                  java.lang.String etag,
                  java.lang.String lastModified)

### EepGet

    public EepGet(I2PAppContext ctx,
                  boolean shouldProxy,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  long minSize,
                  long maxSize,
                  java.lang.String outputFile,
                  java.io.OutputStream outputStream,
                  java.lang.String url,
                  boolean allowCaching,
                  java.lang.String etag,
                  java.lang.String postData)

### EepGet

    public EepGet(I2PAppContext ctx,
                  boolean shouldProxy,
                  java.lang.String proxyHost,
                  int proxyPort,
                  int numRetries,
                  long minSize,
                  long maxSize,
                  java.lang.String outputFile,
                  java.io.OutputStream outputStream,
                  java.lang.String url,
                  boolean allowCaching,
                  java.lang.String etag,
                  java.lang.String lastModified,
                  java.lang.String postData)

Method Detail

### main

    public static void main(java.lang.String[] args)

  EepGet [-p localhost:4444] [-n #retries] [-e etag] [-o outputFile] [-m markSize lineLen] url

### suggestName

    public static java.lang.String suggestName(java.lang.String url)

### addStatusListener

    public void addStatusListener(EepGet.StatusListener lsnr)

### stopFetching

    public void stopFetching()

### fetch

    public boolean fetch()

  Blocking fetch, returning true if the URL was retrieved, false if all retries failed

### fetch

    public boolean fetch(long fetchHeaderTimeout)

  Blocking fetch, timing out individual attempts if the HTTP response headers don't come back in the time given. If the timeout is zero or less, this will wait indefinitely.

### fetch

    public boolean fetch(long fetchHeaderTimeout,
                         long totalTimeout,
                         long inactivityTimeout)

### getETag

    public java.lang.String getETag()

### getLastModified

    public java.lang.String getLastModified()

### getNotModified

    public boolean getNotModified()

### getContentType

    public java.lang.String getContentType()