|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.io.ArchiveReaderFactory
org.archive.wayback.resourcestore.resourcefile.TimeoutArchiveReaderFactory
public class TimeoutArchiveReaderFactory
Sad but needed subclass of the ArchiveReaderFactory, allows config of timeouts for connect and reads on underlying HTTP connections, and overrides the one getArchiveReader(URL,long) method to enable setting the timeouts. This functionality should be moved into the ArchiveReaderFactory.
| Field Summary |
|---|
| Fields inherited from interface org.archive.io.ArchiveFileConstants |
|---|
ABSOLUTE_OFFSET_KEY, CDX, CDX_FILE, CDX_LINE_BUFFER_SIZE, CRLF, DATE_FIELD_KEY, DEFAULT_DIGEST_METHOD, DOT_COMPRESSED_FILE_EXTENSION, DUMP, GZIP_DUMP, HEADER, INVALID_SUFFIX, LENGTH_FIELD_KEY, MIMETYPE_FIELD_KEY, NOHEAD, OCCUPIED_SUFFIX, READER_IDENTIFIER_FIELD_KEY, RECORD_IDENTIFIER_FIELD_KEY, SINGLE_SPACE, TYPE_FIELD_KEY, URL_FIELD_KEY, VERSION_FIELD_KEY |
| Constructor Summary | |
|---|---|
TimeoutArchiveReaderFactory()
|
|
TimeoutArchiveReaderFactory(int timeout)
|
|
TimeoutArchiveReaderFactory(int connectTimeout,
int readTimeout)
|
|
| Method Summary | |
|---|---|
protected org.archive.io.ArchiveReader |
getArchiveReader(URL f,
long offset)
|
| Methods inherited from class org.archive.io.ArchiveReaderFactory |
|---|
addUserAgent, asRepositionable, get, get, get, get, get, get, getArchiveReader, getArchiveReader, getArchiveReader, getArchiveReader, getArchiveReader, getArchiveReader, isCompressed, makeARCLocal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeoutArchiveReaderFactory(int connectTimeout,
int readTimeout)
public TimeoutArchiveReaderFactory(int timeout)
public TimeoutArchiveReaderFactory()
| Method Detail |
|---|
protected org.archive.io.ArchiveReader getArchiveReader(URL f,
long offset)
throws IOException
getArchiveReader in class org.archive.io.ArchiveReaderFactoryIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||