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, setSocketTimeoutMS
public int getMaxRobotsSize()
public void setMaxRobotsSize(int maxRobotsSize)
public Resource getCachedResource(URL url, long maxCacheMS, boolean record) throws LiveDocumentNotAvailableException, LiveWebCacheUnavailableException, LiveWebTimeoutException, IOException
LiveWebCache
getCachedResource
in interface LiveWebCache
getCachedResource
in class RemoteLiveWebCache
url
- 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()
LiveWebCache
shutdown
in interface LiveWebCache
shutdown
in class RemoteLiveWebCache
Copyright © 2005–2015 IIPC. All rights reserved.