Package org.ametys.web.minimize
Class TemplatesJSASSResourceURI
- java.lang.Object
-
- org.ametys.web.minimize.TemplatesJSASSResourceURI
-
- All Implemented Interfaces:
JSASSResourceURI,Contextualizable,Serviceable
public class TemplatesJSASSResourceURI extends Object implements JSASSResourceURI, Contextualizable, Serviceable
JSASS Resource URI for skins' templates URI
-
-
Field Summary
Fields Modifier and Type Field Description private Context_contextprivate SkinsManager_skinsManagerprivate static PatternPATH_SUPPORTED_PATTERNprivate static PatternURI_SUPPORTED_PATTERN
-
Constructor Summary
Constructors Constructor Description TemplatesJSASSResourceURI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextualize(Context context)Stringresolve(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
-
TemplatesJSASSResourceURI
public TemplatesJSASSResourceURI()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
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
-
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
-
-