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
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
 
Method Summary
 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
 
Methods inherited from interface jade.core.ServiceHelper
init
 

Field Detail

SERVICE_NAME

static final java.lang.String SERVICE_NAME
Name of the service

See Also:
Constant Field Values

SHARED_RESOURCES_FOLDER_KEY

static final java.lang.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(java.lang.String name)
                   throws ServiceException,
                          NotFoundException
Get remote resource

Parameters:
name - resource name
Returns:
resource as byte array
Throws:
ServiceException
NotFoundException

getResource

byte[] getResource(java.lang.String name,
                   int fetchMode)
                   throws ServiceException,
                          NotFoundException
Get remote resource

Parameters:
name - resource name
fetchMode - resource fetch mode
Returns:
resource as byte array
Throws:
ServiceException
NotFoundException

getResource

byte[] getResource(java.lang.String name,
                   java.lang.String containerName)
                   throws ServiceException,
                          NotFoundException
Get remote resource

Parameters:
name - resource name
containerName - name of container containing the resource
Returns:
resource as byte array
Throws:
ServiceException
NotFoundException

getResource

byte[] getResource(java.lang.String name,
                   int fetchMode,
                   java.lang.String containerName)
                   throws ServiceException,
                          NotFoundException
Get remote resource

Parameters:
name - resource name
fetchMode - resource fetch mode
containerName - name of container containing the resource
Returns:
resource as byte array
Throws:
ServiceException
NotFoundException


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions