org.n52.connectors.core
Interface ConnectorTypeRegistry

All Known Implementing Classes:
AbstractConnectorTypeRegistry, LocalConnectorTypeRegistry, RemoteConnectorTypeRegistryProxy

public interface ConnectorTypeRegistry

The interface to support the creation of the necessary information for the factory to load a connector class. The registry itself does not create/load connectors

Author:
martin schouwenburg

Method Summary
 java.lang.String getConnectorClass(ServiceRequest request)
          return an XML String describing a Connector with requested functionality.
 

Method Detail

getConnectorClass

java.lang.String getConnectorClass(ServiceRequest request)
                                   throws org.n52.connectors.core.exceptions.IllegalConnectorRequestException,
                                          org.n52.connectors.core.exceptions.WrappedException,
                                          org.n52.connectors.core.exceptions.ParameterDoesNotExistException
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:
org.n52.connectors.core.exceptions.IllegalConnectorRequestException - request could not be fullfilled
org.n52.connectors.core.exceptions.WrappedException
org.n52.connectors.core.exceptions.ParameterDoesNotExistException