public interface ResourceManagementHelper extends ServiceHelper
Modifier and Type | Field and Description |
---|---|
static int |
ALL_RESOURCES |
static int |
CLASSPATH_RESOURCES
This constant represents the possible ways to fetch the resources
|
static int |
FILE_SYSTEM_RESOURCES |
static java.lang.String |
SERVICE_NAME
Name of the service
|
static int |
SHARED_RESOURCES |
static java.lang.String |
SHARED_RESOURCES_FOLDER_KEY
System property key to define the folder root of shared resources
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getResource(java.lang.String name)
Get remote resource
|
byte[] |
getResource(java.lang.String name,
int fetchMode)
Get remote resource
|
byte[] |
getResource(java.lang.String name,
int fetchMode,
java.lang.String containerName)
Get remote resource
|
byte[] |
getResource(java.lang.String name,
java.lang.String containerName)
Get remote resource
|
init
static final java.lang.String SERVICE_NAME
static final java.lang.String SHARED_RESOURCES_FOLDER_KEY
static final int CLASSPATH_RESOURCES
static final int FILE_SYSTEM_RESOURCES
static final int SHARED_RESOURCES
static final int ALL_RESOURCES
byte[] getResource(java.lang.String name) throws ServiceException, NotFoundException
name
- resource nameServiceException
NotFoundException
byte[] getResource(java.lang.String name, int fetchMode) throws ServiceException, NotFoundException
name
- resource namefetchMode
- resource fetch modeServiceException
NotFoundException
byte[] getResource(java.lang.String name, java.lang.String containerName) throws ServiceException, NotFoundException
name
- resource namecontainerName
- name of container containing the resourceServiceException
NotFoundException
byte[] getResource(java.lang.String name, int fetchMode, java.lang.String containerName) throws ServiceException, NotFoundException
name
- resource namefetchMode
- resource fetch modecontainerName
- name of container containing the resourceServiceException
NotFoundException