public class LiveRobotsNoCache extends RemoteLiveWebCache
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxRobotsSize |
connectionManager, hostConfiguration, http, requestPrefix| Constructor and Description |
|---|
LiveRobotsNoCache() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
getCachedResource(URL url,
long maxCacheMS,
boolean record)
Fetch a Resource from the live web, or from a cache of the live web.
|
int |
getMaxRobotsSize() |
void |
setMaxRobotsSize(int maxRobotsSize) |
void |
shutdown()
closes all resources
|
getConnectionTimeoutMS, getHttpClient, getMaxHostConnections, getMaxTotalConnections, getRequestPrefix, getSocketTimeoutMS, setConnectionTimeoutMS, setMaxHostConnections, setMaxTotalConnections, setProxyHostPort, setRequestPrefix, setSocketTimeoutMSpublic int getMaxRobotsSize()
public void setMaxRobotsSize(int maxRobotsSize)
public Resource getCachedResource(URL url, long maxCacheMS, boolean record) throws LiveDocumentNotAvailableException, LiveWebCacheUnavailableException, LiveWebTimeoutException, IOException
LiveWebCachegetCachedResource in interface LiveWebCachegetCachedResource in class RemoteLiveWebCacheurl - to fetch from the live web.maxCacheMS - maximum age of resource to return - optionally honoredrecord - if true, return documents older than maxCacheMS if
a more recent copy is not available.LiveDocumentNotAvailableException - if the resource cannot be
retrieved from the live web, but all proxying and caching
mechanisms functioned properlyLiveWebCacheUnavailableException - if there was a problem either
accessing the live web, in proxying to the live web, or in
maintaining the cache for the live webLiveWebTimeoutException - if there is no response from the live
web cache before a timeout occurred.IOException - for the usual reasonspublic void shutdown()
LiveWebCacheshutdown in interface LiveWebCacheshutdown in class RemoteLiveWebCacheCopyright © 2005–2015 IIPC. All rights reserved.