|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connector
A connector is a support class that is needed to contain all administrative information that is needed to access service providers. It is able to initialize and retrieve/create objects that give access to a service provider To understand the role of the connector, below is a short scenario how a normal request works out
Method Summary | |
---|---|
void |
factorySideInitialization(org.w3c.dom.Document xmlConfiguration,
org.n52.connectors.core.ServiceRequest request)
Initializes the connector with information contained in the request. |
java.lang.Object |
getImplementingObject(org.n52.connectors.core.ServiceRequest req)
Returns an object that supports the desired functionality or gives (indirectly)access to the desired functionality. |
org.geotools.metadata.iso.MetadataEntity |
getMetadata(java.lang.String s)
|
java.lang.String |
getName()
access to the name field of a connector |
boolean |
isSupported(org.n52.connectors.core.ServiceRequest request)
This method checks according to the information in the ServiceRequest if this connector has access to desired functionality. |
java.lang.String |
registrySideInitialization(org.n52.connectors.core.ServiceRequest request)
Creates an Xml string that contains initialization inforamtion needed by the factory to properly created the connector implied by the request. |
Method Detail |
---|
org.geotools.metadata.iso.MetadataEntity getMetadata(java.lang.String s)
s
- a metadata identifier based on ISO 19115. see..
boolean isSupported(org.n52.connectors.core.ServiceRequest request)
if ( String(“ImageGeometryModel.Conversion”).equals( (String)request.get(“service”)) {
if ( (String)request.get(“method”).equals(“bicubic))
return true;
}
request
- contains all information that is needed to find a suitable
connector
void factorySideInitialization(org.w3c.dom.Document xmlConfiguration, org.n52.connectors.core.ServiceRequest request) throws org.n52.connectors.core.exceptions.N52Exception
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
java.lang.String registrySideInitialization(org.n52.connectors.core.ServiceRequest request)
request
- The original request may contain information that is needed by
the server side to create extra initialization information
org.n52.connectors.core.exceptions.IllegalConnectorRequestException
- requested parameters where not present or invalid in the
requestjava.lang.String getName()
java.lang.Object getImplementingObject(org.n52.connectors.core.ServiceRequest req) throws org.n52.connectors.core.exceptions.N52Exception
req
-
org.n52.connectors.core.exceptions.N52Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |