|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.connectors.core.AbstractConnector
public abstract class AbstractConnector
Contains a number of default implementations of methods of the interface. The class is the mandatory parent for all implementations of the Connector interface
Field Summary | |
---|---|
private java.net.URL |
classUrl
|
protected java.lang.String |
connectorName
|
private java.util.ArrayList<Dependency> |
dependencies
|
private java.lang.String |
implementingClass
|
Constructor Summary | |
---|---|
AbstractConnector()
|
Method Summary | |
---|---|
protected void |
addDependency(Dependency dependency)
|
void |
factorySideInitialization(org.w3c.dom.Document xmlConfiguration,
ServiceRequest request)
Initializes the connector with information contained in the request. |
java.lang.Object |
getImplementingObject(ServiceRequest request)
Returns an object that supports the desired functionality or gives (indirectly)access to the desired functionality. |
abstract org.geotools.metadata.iso.MetadataEntity |
getMetadata(java.lang.String arg0)
|
java.lang.String |
getName()
access to the name field of a connector |
abstract boolean |
isSupported(ServiceRequest request)
Checks if a connector supports a service provider that fullfills the conditions set in the request. |
java.lang.String |
registrySideInitialization(ServiceRequest request)
Creates an Xml string that contains initialization inforamtion needed by the factory to properly created the connector implied by the request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String connectorName
private java.util.ArrayList<Dependency> dependencies
private java.lang.String implementingClass
private java.net.URL classUrl
Constructor Detail |
---|
public AbstractConnector()
Method Detail |
---|
public abstract boolean isSupported(ServiceRequest request)
Connector
isSupported
in interface Connector
request
- contains all information that is needed to find a suitable
connector
public abstract org.geotools.metadata.iso.MetadataEntity getMetadata(java.lang.String arg0)
getMetadata
in interface Connector
arg0
- a metadata identifier based on ISO 19115. see..
public java.lang.String getName()
Connector
getName
in interface Connector
public java.lang.String registrySideInitialization(ServiceRequest request)
Connector
registrySideInitialization
in interface Connector
request
- The original request may contain information that is needed by
the server side to create extra initialization informationpublic void factorySideInitialization(org.w3c.dom.Document xmlConfiguration, ServiceRequest request) throws org.n52.connectors.core.exceptions.N52Exception
Connector
factorySideInitialization
in interface Connector
xmlConfiguration
- xml DOM document containing the information returned by the
registryrequest
- The original request may contain initialization information
used as the client side
org.n52.connectors.core.exceptions.IllegalConnectorRequestException
- requested parameters where not present or invalid in the
request
org.n52.connectors.core.exceptions.ParameterDoesNotExistException
org.n52.connectors.core.exceptions.N52Exception
protected void addDependency(Dependency dependency)
public java.lang.Object getImplementingObject(ServiceRequest request) throws org.n52.connectors.core.exceptions.N52Exception
Connector
getImplementingObject
in interface Connector
org.n52.connectors.core.exceptions.N52Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |