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
-
-
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 skinString
resolve(String uri)
Resolve the URI, or returns null if the URI is not supportedString
resolvePath(String path)
Resolve a path and return the URI corresponding, or null if the path is not supportedvoid
service(ServiceManager manager)
-
-
-
Constructor Detail
-
SkinsJSASSResourceURI
public SkinsJSASSResourceURI()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
resolve
public String resolve(String uri) throws URISyntaxException
Description copied from interface:JSASSResourceURI
Resolve the URI, or returns null if the URI is not supported- Specified by:
resolve
in 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:JSASSResourceURI
Resolve a path and return the URI corresponding, or null if the path is not supported- Specified by:
resolvePath
in interfaceJSASSResourceURI
- Parameters:
path
- The path- Returns:
- The URI
-
-