public class PluginResource extends Object
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.http.HttpServletResponse |
httpServletResponse |
protected org.pentaho.platform.api.engine.IPluginManager |
pluginManager |
protected org.pentaho.platform.api.engine.IPluginManager |
pluginMgr |
protected File |
systemFolder |
Constructor and Description |
---|
PluginResource() |
PluginResource(javax.servlet.http.HttpServletResponse httpServletResponse) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getCacheBackedStream(String pluginId,
String path,
boolean useCache) |
javax.ws.rs.core.Response |
readFile(String pluginId,
String path)
Retrieve the file from the selected plugin.
|
protected File systemFolder
protected org.pentaho.platform.api.engine.IPluginManager pluginManager
protected org.pentaho.platform.api.engine.IPluginManager pluginMgr
@Context protected javax.servlet.http.HttpServletResponse httpServletResponse
public PluginResource()
public PluginResource(javax.servlet.http.HttpServletResponse httpServletResponse)
protected InputStream getCacheBackedStream(String pluginId, String path, boolean useCache) throws IOException
IOException
public javax.ws.rs.core.Response readFile(String pluginId, String path) throws IOException
pluginId
- (Plugin ID of the selected Plugin)path
- (Path of the file being retrieved. This is a colon separated path to the plugin file. This
is usually a static file like a javascript, image or htmlIOException
Copyright © 2021 Hitachi Vantara. All rights reserved.