|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.urlmanager.URLFetcher
Handles fetching URLs and if for some reason anything happens add it to the BadURLManager. There are also some util methods for downloading URLs that don't use the Disk Cache.
Constructor Summary | |
URLFetcher()
|
Method Summary | |
static java.io.Reader |
fetch(java.lang.String url)
|
static java.io.Reader |
fetch(java.lang.String url,
boolean force)
Try and fetch a URL as and get the content as a String and possibly add the URL to the BadURLManager if anything goes wrong. |
static java.util.Hashtable |
getRealtimeURLs()
Return the list of realtime URLs for debug |
static boolean |
refresh(java.lang.String url)
Try and fetch a URL if the copy in the cache has expired and add the URL to the BadURLManager if anything goes wrong. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public URLFetcher()
Method Detail |
public static final java.io.Reader fetch(java.lang.String url) throws java.io.IOException
java.io.IOException
public static final java.io.Reader fetch(java.lang.String url, boolean force) throws java.io.IOException
url
- The URL to fetchforce
- if set to true then do not use force this entry to be in the cache...
IE do not use CACHE_REQUIRE_CACHED
java.io.IOException
public static final boolean refresh(java.lang.String url) throws java.io.IOException
url
- The URL to fetch
java.io.IOException
public static final java.util.Hashtable getRealtimeURLs()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |