|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.cache.Request
public class Request
This class manages requests and caching for remote files.
Method Summary | |
---|---|
void |
clear()
|
void |
flush()
|
InputStream |
get(String uri)
|
InputStream |
get(URI uri)
This function handles all Request and does the caching. |
static Request |
getInstance()
Returns the instance of this class |
boolean |
isCacheEnabled()
Is true if caching is enabled. |
void |
setCacheEnabled(boolean enabled)
|
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Request getInstance()
public InputStream get(String uri) throws URISyntaxException, Exception
uri
- to load from
InputStream
URISyntaxException
- if the URI is malformed
Exception
- may contain IOExceptionget(URI)
public InputStream get(URI uri) throws Exception
uri
- to file
InputStream
to uri
Exception
- if something goes wrongpublic void flush()
CacheManager.flush(String)
public void shutdown()
CacheManager.shutdown()
public void clear()
CacheManager.removalAll()
public boolean isCacheEnabled()
public void setCacheEnabled(boolean enabled)
enabled
- enabled
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |