Package com.tagtraum.core.cache
Class CacheURLStreamHandlerFactory
- java.lang.Object
-
- com.tagtraum.core.cache.CacheURLStreamHandlerFactory
-
- All Implemented Interfaces:
URLStreamHandlerFactory
public class CacheURLStreamHandlerFactory extends Object implements URLStreamHandlerFactory
CacheURLStreamHandlerFactory for URLs starting with "cache:".- Author:
- Hendrik Schreiber
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_PROTOCOL_NAME
Cache protocol name.static String
ITC_PROTOCOL_NAME
ITC protocol name.
-
Constructor Summary
Constructors Constructor Description CacheURLStreamHandlerFactory(Cache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLStreamHandler
createURLStreamHandler(String protocol)
Cache
getCache()
void
setCache(Cache cache)
-
-
-
Field Detail
-
CACHE_PROTOCOL_NAME
public static final String CACHE_PROTOCOL_NAME
Cache protocol name.- See Also:
- Constant Field Values
-
ITC_PROTOCOL_NAME
public static final String ITC_PROTOCOL_NAME
ITC protocol name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CacheURLStreamHandlerFactory
public CacheURLStreamHandlerFactory(Cache cache)
- Parameters:
cache
- cache to use
-
-
Method Detail
-
getCache
public Cache getCache()
- Returns:
- cache
-
setCache
public void setCache(Cache cache)
- Parameters:
cache
- cache to use
-
createURLStreamHandler
public URLStreamHandler createURLStreamHandler(String protocol)
- Specified by:
createURLStreamHandler
in interfaceURLStreamHandlerFactory
-
-