Constructor and Description |
---|
PluginImpl(PluginContext pluginContext) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getStaticResource(String name)
Accesses a static resource of the plugin.
|
String |
getUri() |
void |
handleEvent(org.osgi.service.event.Event event) |
boolean |
hasStaticResource(String name)
Checks if this plugin bundle contains a static resource with the given name.
|
void |
publishFileSystem(String uriNamespace,
String path)
Publishes a directory of the server's file system.
|
void |
start() |
void |
stop() |
String |
toString() |
public PluginImpl(PluginContext pluginContext)
public void start()
public void stop()
public void publishFileSystem(String uriNamespace, String path)
path
- An absolute path to the directory to be published.public String getUri()
public InputStream getStaticResource(String name)
Plugin
getStaticResource
in interface Plugin
name
- The resource name: a "/"-separated path name, relative to the plugin bundle's root directory.
It may or may not begin with "/" (it makes no difference).public boolean hasStaticResource(String name)
Plugin
hasStaticResource
in interface Plugin
name
- The resource name: a "/"-separated path name, relative to the plugin bundle's root directory.
It may or may not begin with "/" (it makes no difference).public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
Copyright © 2023. All Rights Reserved.