com.cafesoft.cams.access
Interface ResourceRequestFactory

All Known Implementing Classes:
UrlResourceRequestFactory

public interface ResourceRequestFactory

Defines the interface for a class that can create ResourceRequest instances based on:

Since:
2/1/2002

Method Summary
 ResourceRequest createResourceRequest(ResourceType type, String id, String actions)
          Create a ResourceRequest.
 void initialize(Properties properties)
          Initialize the ResourceRequestFactory.
 

Method Detail

initialize

public void initialize(Properties properties)
                throws ConfigException
Initialize the ResourceRequestFactory.

Parameters:
properties - the initialization properties.
Throws:
ConfigException - if an error occurs initializing factory.

createResourceRequest

public ResourceRequest createResourceRequest(ResourceType type,
                                             String id,
                                             String actions)
                                      throws InvalidResourceException
Create a ResourceRequest.

Parameters:
type - the ResourceType of this ResourceRequest.
id - the resource identifier
actions - the list of desired actions
Returns:
a ResourceRequest corresponding to the specified type, resource identifier, and actions
Throws:
InvalidResourceException - if the type of Resource associated with the ResourceRequest is not known


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.