public class SkinsJSASSResourceURI extends Object implements JSASSResourceURI, Contextualizable, Serviceable
| Modifier and Type | Field and Description |
|---|---|
private Context |
_context |
private SkinsManager |
_skinsManager |
private static Pattern |
PATH_SUPPORTED_PATTERN |
private static Pattern |
URI_SUPPORTED_PATTERN |
| Constructor and Description |
|---|
SkinsJSASSResourceURI() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_getSkin(String skin,
String defaultValue)
Get the skin
|
void |
contextualize(Context context) |
String |
resolve(String uri)
Resolve the URI, or returns null if the URI is not supported
|
String |
resolvePath(String path)
Resolve a path and return the URI corresponding, or null if the path is not supported
|
void |
service(ServiceManager manager) |
private static final Pattern URI_SUPPORTED_PATTERN
private static final Pattern PATH_SUPPORTED_PATTERN
private SkinsManager _skinsManager
public SkinsJSASSResourceURI()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic String resolve(String uri) throws URISyntaxException
JSASSResourceURIresolve in interface JSASSResourceURIuri - The URIURISyntaxException - If the URI is not supportedprotected String _getSkin(String skin, String defaultValue)
skin - The skindefaultValue - default value if no skin specified and no valid skin foundpublic String resolvePath(String path)
JSASSResourceURIresolvePath in interface JSASSResourceURIpath - The path