public class PentahoResourceLoader extends Object implements org.pentaho.reporting.libraries.resourceloader.ResourceLoader
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_URL_PREFIX |
static String |
PATH_SEPARATOR |
static String |
SCHEMA_SEPARATOR |
static String |
SOLUTION_SCHEMA_NAME |
static String |
WIN_PATH_SEPARATOR |
Constructor and Description |
---|
PentahoResourceLoader()
default constructor
|
Modifier and Type | Method and Description |
---|---|
org.pentaho.reporting.libraries.resourceloader.ResourceKey |
createKey(Object value,
Map factoryKeys)
create a new key based on the values provided
|
org.pentaho.reporting.libraries.resourceloader.ResourceKey |
deriveKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent,
String path,
Map data)
derive a key from an existing key, used when a relative path is given.
|
org.pentaho.reporting.libraries.resourceloader.ResourceKey |
deserialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey,
String stringKey) |
org.pentaho.reporting.libraries.resourceloader.ResourceManager |
getManager()
get the resource manager
|
String |
getSchema()
get the schema name, in this case it's always "solution"
|
boolean |
isSupportedDeserializer(String data) |
boolean |
isSupportedKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
see if the pentaho resource loader can support the content key path
|
org.pentaho.reporting.libraries.resourceloader.ResourceData |
load(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
create a resource data object
|
String |
serialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey resourceKey,
org.pentaho.reporting.libraries.resourceloader.ResourceKey key) |
void |
setResourceManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager)
set the resource manager
|
URL |
toURL(org.pentaho.reporting.libraries.resourceloader.ResourceKey key) |
public static final String SOLUTION_SCHEMA_NAME
public static final String HTTP_URL_PREFIX
public static final String SCHEMA_SEPARATOR
public static final String PATH_SEPARATOR
public static final String WIN_PATH_SEPARATOR
public void setResourceManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager)
manager
- resource managerpublic org.pentaho.reporting.libraries.resourceloader.ResourceManager getManager()
public String getSchema()
public org.pentaho.reporting.libraries.resourceloader.ResourceData load(org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
load
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
key
- resource keyorg.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
public boolean isSupportedKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
isSupportedKey
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
values
- map of values to look inpublic org.pentaho.reporting.libraries.resourceloader.ResourceKey createKey(Object value, Map factoryKeys) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
createKey
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
values
- map of valuesorg.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
public org.pentaho.reporting.libraries.resourceloader.ResourceKey deriveKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent, String path, Map data) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
deriveKey
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
parent
- the parent keydata
- the new data to be keyedorg.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
public URL toURL(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)
toURL
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
public org.pentaho.reporting.libraries.resourceloader.ResourceKey deserialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, String stringKey) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
deserialize
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
public boolean isSupportedDeserializer(String data)
isSupportedDeserializer
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
public String serialize(org.pentaho.reporting.libraries.resourceloader.ResourceKey resourceKey, org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws org.pentaho.reporting.libraries.resourceloader.ResourceException
serialize
in interface org.pentaho.reporting.libraries.resourceloader.ResourceLoader
org.pentaho.reporting.libraries.resourceloader.ResourceException