public abstract class AbstractGeneratedResourceHandler extends Object implements org.springframework.core.Ordered
| Modifier and Type | Field and Description | 
|---|---|
| protected javax.cache.CacheManager | cacheManager | 
| static int | DEFAULT_ORDER | 
| protected ResourceRequestExtensionManager | extensionManager | 
| protected javax.cache.Cache<String,org.springframework.core.io.Resource> | generatedResourceCache | 
| protected static org.apache.commons.logging.Log | LOG | 
| protected StatisticsService | statisticsService | 
| protected StreamingTransactionCapableUtil | transUtil | 
| Constructor and Description | 
|---|
| AbstractGeneratedResourceHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | canHandle(String path) | 
| protected String | getCacheName() | 
| abstract org.springframework.core.io.Resource | getFileContents(String path,
               List<org.springframework.core.io.Resource> locations) | 
| protected javax.cache.Cache<String,org.springframework.core.io.Resource> | getGeneratedResourceCache() | 
| int | getOrder() | 
| protected org.springframework.core.io.Resource | getRawResource(String path,
              List<org.springframework.core.io.Resource> locations)This method can be used to read in a resource given a path and at least one resource location | 
| org.springframework.core.io.Resource | getResource(String path,
           List<org.springframework.core.io.Resource> locations)Attempts to retrive the requested resource from cache. | 
| protected String | getResourceContents(org.springframework.core.io.Resource resource) | 
| abstract boolean | isCachedResourceExpired(GeneratedResource cachedResource,
                       String path,
                       List<org.springframework.core.io.Resource> locations) | 
public static final int DEFAULT_ORDER
protected static final org.apache.commons.logging.Log LOG
protected StatisticsService statisticsService
protected StreamingTransactionCapableUtil transUtil
protected ResourceRequestExtensionManager extensionManager
protected javax.cache.CacheManager cacheManager
protected javax.cache.Cache<String,org.springframework.core.io.Resource> generatedResourceCache
public abstract boolean canHandle(String path)
path - public abstract org.springframework.core.io.Resource getFileContents(String path, List<org.springframework.core.io.Resource> locations)
path - locations - public abstract boolean isCachedResourceExpired(GeneratedResource cachedResource, String path, List<org.springframework.core.io.Resource> locations)
cachedResource - path - locations - public org.springframework.core.io.Resource getResource(String path, List<org.springframework.core.io.Resource> locations)
request - location - protected org.springframework.core.io.Resource getRawResource(String path, List<org.springframework.core.io.Resource> locations)
path - locations - protected String getResourceContents(org.springframework.core.io.Resource resource) throws IOException
resource - IOExceptionprotected javax.cache.Cache<String,org.springframework.core.io.Resource> getGeneratedResourceCache()
protected String getCacheName()
public int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2020. All rights reserved.