public class CssDependenciesList extends AbstractLogEnabled implements ResourceDependenciesList, Serviceable
Modifier and Type | Field and Description |
---|---|
private static Pattern |
__EXTERNAL_URL |
private static Pattern |
__IMPORT_WITHOUT_MEDIA_PATTERN |
private Map<String,Pair<List<String>,Long>> |
_dependenciesCache |
private ProxiedContextPathProvider |
_proxiedContextPathProvider |
protected RequestAttributesHelper |
_requestAttributesHelper
RequestAttributesHelper
|
private SourceResolver |
_sourceResolver |
Constructor and Description |
---|
CssDependenciesList() |
Modifier and Type | Method and Description |
---|---|
private List<HashCache.UriData> |
_getCssFileDependencies(String uri,
Source cssSource) |
private Set<HashCache.UriData> |
_getFileDependencies(String cssUri,
String media,
boolean firstLevel) |
private Source |
_getFileSource(String cssUri,
Map<String,Object> resolveParameters) |
Set<HashCache.UriData> |
getDependenciesList(String uri,
Map<String,String> data)
Get the list of dependencies
|
int |
getPriority()
Get the priority of this FileDependenciesList if multiple are supported
|
boolean |
isSupported(String uri)
Is the uri supported to get the list of dependencies
|
void |
service(ServiceManager manager) |
getLogger, setLogger
private static final Pattern __IMPORT_WITHOUT_MEDIA_PATTERN
private static final Pattern __EXTERNAL_URL
protected RequestAttributesHelper _requestAttributesHelper
private SourceResolver _sourceResolver
private ProxiedContextPathProvider _proxiedContextPathProvider
public CssDependenciesList()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean isSupported(String uri)
ResourceDependenciesList
isSupported
in interface ResourceDependenciesList
uri
- The uripublic int getPriority()
ResourceDependenciesList
getPriority
in interface ResourceDependenciesList
public Set<HashCache.UriData> getDependenciesList(String uri, Map<String,String> data)
ResourceDependenciesList
getDependenciesList
in interface ResourceDependenciesList
uri
- The input sourcedata
- Additional data, specific per ResourceDependenciesList implementationsprivate Set<HashCache.UriData> _getFileDependencies(String cssUri, String media, boolean firstLevel) throws IllegalArgumentException
IllegalArgumentException
private List<HashCache.UriData> _getCssFileDependencies(String uri, Source cssSource) throws IllegalArgumentException
IllegalArgumentException