public class PluginsJSASSResourceURI extends Object implements JSASSResourceURI, PluginAware
Modifier and Type | Field and Description |
---|---|
private String |
_pluginName |
private static Pattern |
PATH_SUPPORTED_PATTERN |
private static Pattern |
URI_SUPPORTED_PATTERN |
Constructor and Description |
---|
PluginsJSASSResourceURI() |
Modifier and Type | Method and Description |
---|---|
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 |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
private static final Pattern URI_SUPPORTED_PATTERN
private static final Pattern PATH_SUPPORTED_PATTERN
private String _pluginName
public PluginsJSASSResourceURI()
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic String resolve(String uri) throws URISyntaxException
JSASSResourceURI
resolve
in interface JSASSResourceURI
uri
- The URIURISyntaxException
- If the URI is not supportedpublic String resolvePath(String path)
JSASSResourceURI
resolvePath
in interface JSASSResourceURI
path
- The path