org.broadleafcommerce.cms.url.service
Class URLHandlerServiceImpl
java.lang.Object
org.broadleafcommerce.cms.url.service.URLHandlerServiceImpl
- All Implemented Interfaces:
- URLHandlerService
@Service(value="blURLHandlerService")
public class URLHandlerServiceImpl
- extends Object
- implements URLHandlerService
Created by bpolster.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
urlHandlerDao
protected URLHandlerDao urlHandlerDao
statisticsService
protected StatisticsService statisticsService
urlHandlerCache
protected net.sf.ehcache.Cache urlHandlerCache
URLHandlerServiceImpl
public URLHandlerServiceImpl()
findURLHandlerByURI
public URLHandler findURLHandlerByURI(String uri)
- Checks the passed in URL to determine if there is a matching URLHandler.
Returns null if no handler was found.
- Specified by:
findURLHandlerByURI in interface URLHandlerService
- Parameters:
uri -
- Returns:
findURLHandlerById
public URLHandler findURLHandlerById(Long id)
- Specified by:
findURLHandlerById in interface URLHandlerService
removeURLHandlerFromCache
public void removeURLHandlerFromCache(SandBox sandBox,
URLHandler urlhandler)
- Specified by:
removeURLHandlerFromCache in interface URLHandlerService
findAllURLHandlers
public List<URLHandler> findAllURLHandlers()
- Specified by:
findAllURLHandlers in interface URLHandlerService
saveURLHandler
@Transactional(value="blTransactionManager")
public URLHandler saveURLHandler(URLHandler handler)
- Specified by:
saveURLHandler in interface URLHandlerService
getUrlHandlerCache
public net.sf.ehcache.Cache getUrlHandlerCache()
- Specified by:
getUrlHandlerCache in interface URLHandlerService
buildKey
protected String buildKey(SandBox sandBox,
String requestUri)
buildKey
protected String buildKey(SandBox sandBox,
URLHandler urlHandler)
lookupHandlerFromCache
protected URLHandler lookupHandlerFromCache(String requestURI)
getUrlHandlerFromCache
protected URLHandler getUrlHandlerFromCache(String key)
findURLHandlerByURIInternal
protected URLHandler findURLHandlerByURIInternal(String uri)
Copyright © 2013. All Rights Reserved.