public class URLtoARCCacher extends Object
| Constructor and Description |
|---|
URLtoARCCacher() |
| Modifier and Type | Method and Description |
|---|---|
FileRegion |
cacheURL(String url,
ARCCacheDirectory cache) |
String |
getBackingFileBase() |
int |
getConnectionTimeoutMS() |
String |
getRecorderCacheDir() |
int |
getSocketTimeoutMS() |
String |
getUserAgent() |
void |
setBackingFileBase(String backingFileBase) |
void |
setConnectionTimeoutMS(int connectionTimeoutMS) |
void |
setRecorderCacheDir(String recorderCacheDirPath) |
void |
setSocketTimeoutMS(int socketTimeoutMS) |
void |
setUserAgent(String userAgent) |
public FileRegion cacheURL(String url, ARCCacheDirectory cache) throws IOException, org.apache.commons.httpclient.URIException
url - to cachecache - ARCCacheDirectory for storing result or faked resultIOException - for the usual reasonsorg.apache.commons.httpclient.URIException - if url argument isn't really an URL..public String getRecorderCacheDir()
public void setRecorderCacheDir(String recorderCacheDirPath)
recorderCacheDirPath - the recorderCacheDir to setpublic String getBackingFileBase()
public void setBackingFileBase(String backingFileBase)
backingFileBase - the backingFileBase to setpublic String getUserAgent()
public void setUserAgent(String userAgent)
userAgent - the userAgent to setpublic int getConnectionTimeoutMS()
public void setConnectionTimeoutMS(int connectionTimeoutMS)
connectionTimeoutMS - the connectionTimeoutMS to setpublic int getSocketTimeoutMS()
public void setSocketTimeoutMS(int socketTimeoutMS)
socketTimeoutMS - the socketTimeoutMS to setCopyright © 2005–2015 IIPC. All rights reserved.