com.cafesoft.cams.access.url
Class UrlResourceRequestFactory

java.lang.Object
  |
  +--com.cafesoft.cams.access.url.UrlResourceRequestFactory
All Implemented Interfaces:
ResourceRequestFactory

public class UrlResourceRequestFactory
extends Object
implements ResourceRequestFactory

UrlResourceRequestFactory implements a factory for creating ResourceRequests implemented by class UrlResourceRequest.

Since:
2/1/2002

Constructor Summary
UrlResourceRequestFactory()
          Create a new UrlResourceRequestFactory.
 
Method Summary
 ResourceRequest createResourceRequest(ResourceType type, String id, String actions)
          Create a ResourceRequest.
 void initialize(Properties properties)
          Initialize the ResourceRequestFactory.
 void parseSchemeMap(Properties properties)
          Parse the properties object into a hashmap that contains all of the supported schemes along with their default port value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlResourceRequestFactory

public UrlResourceRequestFactory()
Create a new UrlResourceRequestFactory.

Method Detail

initialize

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

Specified by:
initialize in interface 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.

Specified by:
createResourceRequest in interface ResourceRequestFactory
Parameters:
type - the ResourceType corresponding to the type of 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 specified type is not known to the factory.
InvalidResourceException - if the type of Resource associated with the ResourceRequest is not known

parseSchemeMap

public void parseSchemeMap(Properties properties)
                    throws ConfigException
Parse the properties object into a hashmap that contains all of the supported schemes along with their default port value.

Parameters:
properties - the Properties object to get the scheme and port values from.
Throws:
ConfigException - if any error occurs parsing the properties.


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