Class ApacheHttp43SLRFactory
java.lang.Object
org.archive.util.binsearch.impl.HTTPSeekableLineReaderFactory
org.archive.util.binsearch.impl.http.ApacheHttp43SLRFactory
- All Implemented Interfaces:
SeekableLineReaderFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.archive.util.binsearch.impl.HTTPSeekableLineReaderFactory
HTTPSeekableLineReaderFactory.HttpLibs -
Field Summary
Fields inherited from class org.archive.util.binsearch.impl.HTTPSeekableLineReaderFactory
defaultURLFields inherited from interface org.archive.util.binsearch.SeekableLineReaderFactory
BINSEARCH_BLOCK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intintintlongintbooleanvoidsetConnectionTimeoutMS(int connectionTimeoutMS) voidsetMaxHostConnections(int maxHostConnections) voidsetMaxTotalConnections(int maxTotalConnections) voidsetNumRetries(int numRetries) voidsetProxyHostPort(String hostPort) voidsetSocketTimeoutMS(int socketTimeoutMS) voidsetStaleChecking(boolean enabled) Methods inherited from class org.archive.util.binsearch.impl.HTTPSeekableLineReaderFactory
get, getHttpFactory, getHttpFactory, getHttpFactory, getHttpFactory, reload
-
Constructor Details
-
ApacheHttp43SLRFactory
public ApacheHttp43SLRFactory()
-
-
Method Details
-
get
- Specified by:
getin classHTTPSeekableLineReaderFactory- Throws:
IOException
-
close
- Specified by:
closein interfaceSeekableLineReaderFactory- Specified by:
closein classHTTPSeekableLineReaderFactory- Throws:
IOException
-
setProxyHostPort
- Specified by:
setProxyHostPortin classHTTPSeekableLineReaderFactory- Parameters:
hostPort- to proxy requests through - ex. "localhost:3128"
-
setMaxTotalConnections
public void setMaxTotalConnections(int maxTotalConnections) - Specified by:
setMaxTotalConnectionsin classHTTPSeekableLineReaderFactory- Parameters:
maxTotalConnections- the HttpConnectionManagerParams config
-
getMaxTotalConnections
public int getMaxTotalConnections()- Specified by:
getMaxTotalConnectionsin classHTTPSeekableLineReaderFactory- Returns:
- the HttpConnectionManagerParams maxTotalConnections config
-
setMaxHostConnections
public void setMaxHostConnections(int maxHostConnections) - Specified by:
setMaxHostConnectionsin classHTTPSeekableLineReaderFactory- Parameters:
maxHostConnections- the HttpConnectionManagerParams config
-
getMaxHostConnections
public int getMaxHostConnections()- Specified by:
getMaxHostConnectionsin classHTTPSeekableLineReaderFactory- Returns:
- the HttpConnectionManagerParams maxHostConnections config
-
getConnectionTimeoutMS
public int getConnectionTimeoutMS()- Specified by:
getConnectionTimeoutMSin classHTTPSeekableLineReaderFactory- Returns:
- the connectionTimeoutMS
-
setConnectionTimeoutMS
public void setConnectionTimeoutMS(int connectionTimeoutMS) - Specified by:
setConnectionTimeoutMSin classHTTPSeekableLineReaderFactory- Parameters:
connectionTimeoutMS- the connectionTimeoutMS to set
-
getSocketTimeoutMS
public int getSocketTimeoutMS()- Specified by:
getSocketTimeoutMSin classHTTPSeekableLineReaderFactory- Returns:
- the socketTimeoutMS
-
setSocketTimeoutMS
public void setSocketTimeoutMS(int socketTimeoutMS) - Specified by:
setSocketTimeoutMSin classHTTPSeekableLineReaderFactory- Parameters:
socketTimeoutMS- the socketTimeoutMS to set
-
setStaleChecking
public void setStaleChecking(boolean enabled) - Specified by:
setStaleCheckingin classHTTPSeekableLineReaderFactory
-
isStaleChecking
public boolean isStaleChecking()- Specified by:
isStaleCheckingin classHTTPSeekableLineReaderFactory
-
getModTime
public long getModTime()- Specified by:
getModTimein interfaceSeekableLineReaderFactory- Specified by:
getModTimein classHTTPSeekableLineReaderFactory
-
setNumRetries
public void setNumRetries(int numRetries) - Specified by:
setNumRetriesin classHTTPSeekableLineReaderFactory
-