org.n52.connectors.core
Class LocalConnectorTypeRegistry

java.lang.Object
  extended by org.n52.connectors.core.AbstractConnectorTypeRegistry
      extended by org.n52.connectors.core.LocalConnectorTypeRegistry
All Implemented Interfaces:
ConnectorTypeRegistry

public class LocalConnectorTypeRegistry
extends AbstractConnectorTypeRegistry

Handling of requests on the same system as the factory is located. The local registry is created by a client program and has access to locally defined connectors. These connectors must be found on a path given at creation time of the connector. Note that the namespace of the conenctors is of significance here (that is dont include them in the path).

Author:
martin schouwenburg

Constructor Summary
LocalConnectorTypeRegistry(java.lang.String path)
           
 
Method Summary
 java.lang.String getConnectorClass(ConnectorRequest request)
          return an XML String describing a Connector with requested functionality.
 
Methods inherited from class org.n52.connectors.core.AbstractConnectorTypeRegistry
setDefaultConnector
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalConnectorTypeRegistry

public LocalConnectorTypeRegistry(java.lang.String path)
                           throws WrappedException,
                                  IllegalDefaultSetting
Throws:
WrappedException
IllegalDefaultSetting
Method Detail

getConnectorClass

public java.lang.String getConnectorClass(ConnectorRequest request)
                                   throws IllegalConnectorRequest,
                                          WrappedException,
                                          ParameterDoesNotExist
Description copied from interface: ConnectorTypeRegistry
return an XML String describing a Connector with requested functionality. Depending on the request, the connector returned is either the default for the service or the connector explicitly requested for. In the XML string all needed information should be that enables a factory to create a proper connector with the correct initialization

Parameters:
request - contains all information that is needed to find a suitable connector
Returns:
a connector that supports the request, in an XML String
Throws:
IllegalConnectorRequest - request could not be fullfilled
WrappedException
ParameterDoesNotExist