Package jade.core.resource
Interface ResourceManagementHelper
-
- All Superinterfaces:
ServiceHelper
public interface ResourceManagementHelper extends ServiceHelper
The ResourceManagementHelper provides methods that allows to access resources available on the main or other containers.
-
-
Field Summary
Fields Modifier and Type Field Description static intALL_RESOURCESstatic intCLASSPATH_RESOURCESThis constant represents the possible ways to fetch the resourcesstatic intFILE_SYSTEM_RESOURCESstatic StringSERVICE_NAMEName of the servicestatic intSHARED_RESOURCESstatic StringSHARED_RESOURCES_FOLDER_KEYSystem property key to define the folder root of shared resources
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getResource(String name)Get remote resourcebyte[]getResource(String name, int fetchMode)Get remote resourcebyte[]getResource(String name, int fetchMode, String containerName)Get remote resourcebyte[]getResource(String name, String containerName)Get remote resource-
Methods inherited from interface jade.core.ServiceHelper
init
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
Name of the service- See Also:
- Constant Field Values
-
SHARED_RESOURCES_FOLDER_KEY
static final String SHARED_RESOURCES_FOLDER_KEY
System property key to define the folder root of shared resources- See Also:
- Constant Field Values
-
CLASSPATH_RESOURCES
static final int CLASSPATH_RESOURCES
This constant represents the possible ways to fetch the resources- See Also:
- Constant Field Values
-
FILE_SYSTEM_RESOURCES
static final int FILE_SYSTEM_RESOURCES
- See Also:
- Constant Field Values
-
SHARED_RESOURCES
static final int SHARED_RESOURCES
- See Also:
- Constant Field Values
-
ALL_RESOURCES
static final int ALL_RESOURCES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResource
byte[] getResource(String name) throws ServiceException, NotFoundException
Get remote resource- Parameters:
name- resource name- Returns:
- resource as byte array
- Throws:
ServiceExceptionNotFoundException
-
getResource
byte[] getResource(String name, int fetchMode) throws ServiceException, NotFoundException
Get remote resource- Parameters:
name- resource namefetchMode- resource fetch mode- Returns:
- resource as byte array
- Throws:
ServiceExceptionNotFoundException
-
getResource
byte[] getResource(String name, String containerName) throws ServiceException, NotFoundException
Get remote resource- Parameters:
name- resource namecontainerName- name of container containing the resource- Returns:
- resource as byte array
- Throws:
ServiceExceptionNotFoundException
-
getResource
byte[] getResource(String name, int fetchMode, String containerName) throws ServiceException, NotFoundException
Get remote resource- Parameters:
name- resource namefetchMode- resource fetch modecontainerName- name of container containing the resource- Returns:
- resource as byte array
- Throws:
ServiceExceptionNotFoundException
-
-