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

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

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

createResourceRequest

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:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.