Package org.ametys.web.minimize
Class SkinsJSASSResourceURI
- java.lang.Object
 - 
- org.ametys.web.minimize.SkinsJSASSResourceURI
 
 
- 
- All Implemented Interfaces:
 JSASSResourceURI,Serviceable
public class SkinsJSASSResourceURI extends Object implements JSASSResourceURI, Serviceable
JSASS Resource URI for skins URI 
- 
- 
Field Summary
Fields Modifier and Type Field Description private SkinsManager_skinsManagerprivate static PatternPATH_SUPPORTED_PATTERNprivate static PatternURI_SUPPORTED_PATTERN 
- 
Constructor Summary
Constructors Constructor Description SkinsJSASSResourceURI() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String_getSkin(String skin, String defaultValue)Get the skinStringresolve(String uri)Resolve the URI, or returns null if the URI is not supportedStringresolvePath(String path)Resolve a path and return the URI corresponding, or null if the path is not supportedvoidservice(ServiceManager manager) 
 - 
 
- 
- 
Field Detail
- 
URI_SUPPORTED_PATTERN
private static final Pattern URI_SUPPORTED_PATTERN
 
- 
PATH_SUPPORTED_PATTERN
private static final Pattern PATH_SUPPORTED_PATTERN
 
- 
_skinsManager
private SkinsManager _skinsManager
 
 - 
 
- 
Constructor Detail
- 
SkinsJSASSResourceURI
public SkinsJSASSResourceURI()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 
- 
resolve
public String resolve(String uri) throws URISyntaxException
Description copied from interface:JSASSResourceURIResolve the URI, or returns null if the URI is not supported- Specified by:
 resolvein interfaceJSASSResourceURI- Parameters:
 uri- The URI- Returns:
 - The resolved URI
 - Throws:
 URISyntaxException- If the URI is not supported
 
- 
_getSkin
protected String _getSkin(String skin, String defaultValue)
Get the skin- Parameters:
 skin- The skindefaultValue- default value if no skin specified and no valid skin found- Returns:
 - The skin name
 
 
- 
resolvePath
public String resolvePath(String path)
Description copied from interface:JSASSResourceURIResolve a path and return the URI corresponding, or null if the path is not supported- Specified by:
 resolvePathin interfaceJSASSResourceURI- Parameters:
 path- The path- Returns:
 - The URI
 
 
 - 
 
 -