public class AbstractPluginRootResource extends Object
Subclasses of this class may provide subresources using annotated getters in order to be multi-engine aware.
Subresources must properly initialize the subresources via
subResource(AbstractPluginResource, String)
.
Modifier and Type | Field and Description |
---|---|
protected static String |
WEBAPP_PREFIX |
Constructor and Description |
---|
AbstractPluginRootResource(String pluginName) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getAsset(String file)
Provides a plugins asset files via
$PLUGIN_ROOT_PATH/static . |
protected String |
getContentType(String file) |
protected <T extends AbstractPluginResource> |
subResource(T subResource,
String engineName) |
protected static final String WEBAPP_PREFIX
public AbstractPluginRootResource(String pluginName)
protected <T extends AbstractPluginResource> T subResource(T subResource, String engineName)
T
- subResource
- engineName
- public javax.ws.rs.core.Response getAsset(String file)
$PLUGIN_ROOT_PATH/static
.file
- Copyright © 2015. All rights reserved.