public class HTTPURLConnSLRFactory extends HTTPSeekableLineReaderFactory
HTTPSeekableLineReaderFactory.HttpLibs| Modifier and Type | Field and Description |
|---|---|
protected int |
connTimeout |
protected int |
readTimeout |
defaultURLBINSEARCH_BLOCK_SIZE| Constructor and Description |
|---|
HTTPURLConnSLRFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HTTPSeekableLineReader |
get(java.lang.String url) |
int |
getConnectionTimeoutMS() |
int |
getMaxHostConnections() |
int |
getMaxTotalConnections() |
long |
getModTime() |
int |
getSocketTimeoutMS() |
boolean |
isStaleChecking() |
void |
setConnectionTimeoutMS(int connectionTimeoutMS) |
void |
setMaxHostConnections(int maxHostConnections) |
void |
setMaxTotalConnections(int maxTotalConnections) |
void |
setNumRetries(int numRetries) |
void |
setProxyHostPort(java.lang.String hostPort) |
void |
setSocketTimeoutMS(int socketTimeoutMS) |
void |
setStaleChecking(boolean enabled) |
get, getHttpFactory, getHttpFactory, getHttpFactory, getHttpFactory, reloadpublic HTTPSeekableLineReader get(java.lang.String url) throws java.io.IOException
get in class HTTPSeekableLineReaderFactoryjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface SeekableLineReaderFactoryclose in class HTTPSeekableLineReaderFactoryjava.io.IOExceptionpublic long getModTime()
getModTime in interface SeekableLineReaderFactorygetModTime in class HTTPSeekableLineReaderFactorypublic void setProxyHostPort(java.lang.String hostPort)
setProxyHostPort in class HTTPSeekableLineReaderFactoryhostPort - to proxy requests through - ex. "localhost:3128"public void setMaxTotalConnections(int maxTotalConnections)
setMaxTotalConnections in class HTTPSeekableLineReaderFactorymaxTotalConnections - the HttpConnectionManagerParams configpublic int getMaxTotalConnections()
getMaxTotalConnections in class HTTPSeekableLineReaderFactorypublic void setMaxHostConnections(int maxHostConnections)
setMaxHostConnections in class HTTPSeekableLineReaderFactorymaxHostConnections - the HttpConnectionManagerParams configpublic int getMaxHostConnections()
getMaxHostConnections in class HTTPSeekableLineReaderFactorypublic int getConnectionTimeoutMS()
getConnectionTimeoutMS in class HTTPSeekableLineReaderFactorypublic void setConnectionTimeoutMS(int connectionTimeoutMS)
setConnectionTimeoutMS in class HTTPSeekableLineReaderFactoryconnectionTimeoutMS - the connectionTimeoutMS to setpublic int getSocketTimeoutMS()
getSocketTimeoutMS in class HTTPSeekableLineReaderFactorypublic void setSocketTimeoutMS(int socketTimeoutMS)
setSocketTimeoutMS in class HTTPSeekableLineReaderFactorysocketTimeoutMS - the socketTimeoutMS to setpublic void setStaleChecking(boolean enabled)
setStaleChecking in class HTTPSeekableLineReaderFactorypublic boolean isStaleChecking()
isStaleChecking in class HTTPSeekableLineReaderFactorypublic void setNumRetries(int numRetries)
setNumRetries in class HTTPSeekableLineReaderFactoryCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.