@Service(value="blURLHandlerService") public class URLHandlerServiceImpl extends Object implements URLHandlerService
Modifier and Type | Field and Description |
---|---|
protected StatisticsService |
statisticsService |
protected net.sf.ehcache.Cache |
urlHandlerCache |
protected URLHandlerDao |
urlHandlerDao |
protected org.codehaus.jackson.map.util.LRUMap<String,Pattern> |
urlPatternMap |
Constructor and Description |
---|
URLHandlerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildKey(SandBox sandBox,
String requestUri) |
protected String |
buildKey(SandBox sandBox,
URLHandler urlHandler) |
protected URLHandler |
checkForMatches(String requestURI) |
List<URLHandler> |
findAllURLHandlers() |
URLHandler |
findURLHandlerById(Long id) |
URLHandler |
findURLHandlerByURI(String uri)
Checks the passed in URL to determine if there is a matching URLHandler.
|
protected URLHandler |
findURLHandlerByURIInternal(String uri) |
net.sf.ehcache.Cache |
getUrlHandlerCache() |
protected URLHandler |
getUrlHandlerFromCache(String key) |
protected URLHandler |
lookupHandlerFromCache(String requestURI) |
void |
removeURLHandlerFromCache(SandBox sandBox,
URLHandler urlhandler) |
URLHandler |
saveURLHandler(URLHandler handler) |
protected URLHandlerDao urlHandlerDao
protected StatisticsService statisticsService
protected net.sf.ehcache.Cache urlHandlerCache
public URLHandler findURLHandlerByURI(String uri)
findURLHandlerByURI
in interface URLHandlerService
uri
- public URLHandler findURLHandlerById(Long id)
findURLHandlerById
in interface URLHandlerService
public void removeURLHandlerFromCache(SandBox sandBox, URLHandler urlhandler)
removeURLHandlerFromCache
in interface URLHandlerService
public List<URLHandler> findAllURLHandlers()
findAllURLHandlers
in interface URLHandlerService
@Transactional(value="blTransactionManager") public URLHandler saveURLHandler(URLHandler handler)
saveURLHandler
in interface URLHandlerService
public net.sf.ehcache.Cache getUrlHandlerCache()
getUrlHandlerCache
in interface URLHandlerService
protected String buildKey(SandBox sandBox, URLHandler urlHandler)
protected URLHandler checkForMatches(String requestURI)
protected URLHandler lookupHandlerFromCache(String requestURI)
protected URLHandler getUrlHandlerFromCache(String key)
protected URLHandler findURLHandlerByURIInternal(String uri)
Copyright © 2014. All rights reserved.