public class Request extends Object
Modifier and Type | Method and Description |
---|---|
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() |
public static Request getInstance()
public InputStream get(String uri) throws URISyntaxException, Exception
uri
- to load fromInputStream
URISyntaxException
- if the URI is malformedException
- may contain IOExceptionget(URI)
public InputStream get(URI uri) throws Exception
uri
- to fileInputStream
to uriException
- if something goes wrongpublic void flush()
HaleCacheManager.flush(String)
public void shutdown()
CacheManager.shutdown()
public void clear()
CacheManager.removalAll()
public boolean isCacheEnabled()
public void setCacheEnabled(boolean enabled)
enabled
- enabledBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a