public interface UiUrlService
This is an interface to be implemented at the allow different server implementation to host UI's files on specific context paths.
| Modifier and Type | Method and Description |
|---|---|
String |
getContextPath()
Gets the context path common to all plugins on this server.
|
String |
getContextRelativePath(InvestUiExtension extension)
Gets the path to the extension relative to the getContextPath()
|
default String |
getFullPath(InvestUiExtension extension)
Gets the full path to the plugins files.
|
boolean |
isPathForExtensionRoot(String path)
Checks it a path maps to the root directory of a plugin.
|
default String getFullPath(InvestUiExtension extension)
This may be relative or absolution (depending on server configuration).
For example /ui/my-ui-plugin
extension - the extensionString getContextRelativePath(InvestUiExtension extension)
Foe xample '/my-ui-plugin.
extension - the extensionString getContextPath()
For example "/ui"
boolean isPathForExtensionRoot(String path)
The alternative is that is links to a file (index.html) within that directory.
path - the pathCopyright © 2017–2018 Committed. All rights reserved.