Class ConfigurableSupportedContextResourceUri
java.lang.Object
org.ametys.plugins.core.ui.resources.css.ConfigurableSupportedContextResourceUri
- All Implemented Interfaces:
SupportedContextResourceUri
,Configurable
public class ConfigurableSupportedContextResourceUri
extends Object
implements SupportedContextResourceUri, Configurable
Default configurable implementation for
SupportedContextResourceUri
. Can be configured to map contexts with URIs-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) Resolve the uri with the context protocol.resolvePath
(String path) Resolve the context path into a context uri
-
Constructor Details
-
ConfigurableSupportedContextResourceUri
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
resolve
Description copied from interface:SupportedContextResourceUri
Resolve the uri with the context protocol.- Specified by:
resolve
in interfaceSupportedContextResourceUri
- Parameters:
uri
- The URI- Returns:
- The resolved uri, or null if the protocol is not supported
-
resolvePath
Description copied from interface:SupportedContextResourceUri
Resolve the context path into a context uri- Specified by:
resolvePath
in interfaceSupportedContextResourceUri
- Parameters:
path
- The path- Returns:
- The uri, or null if the context path is not supported
-