org.n52.oxf.serviceAdapters.wms
Class WMSAdapter

java.lang.Object
  extended by org.n52.oxf.serviceAdapters.wms.WMSAdapter
All Implemented Interfaces:
IServiceAdapter

public class WMSAdapter
extends Object
implements IServiceAdapter

This class enables the communication to a OGC WMS.
The Adapter is capable to handle WMS 1.0.0, 1.1.0, 1.1.1.

Author:
Theodor Foerster

Field Summary
static String OPERATION_GETCAPABILITIES
           
static String OPERATION_GETFEATUREINFO
           
static String OPERATION_GETMAP
           
static String SERVICE_TYPE
           
static String VERSION_100
           
static String VERSION_110
           
static String VERSION_111
           
 
Constructor Summary
WMSAdapter()
          standard constructor
WMSAdapter(String version)
           
 
Method Summary
 OperationResult doOperation(Operation operation, ParameterContainer parameterContainer)
          executes the OWS operation with the specified operationName of the OWS which is identified by the given serviceURL.
 String getDescription()
           
 String getResourceOperationName()
           
 String getServiceType()
           
 String[] getSupportedVersions()
           
 ServiceDescriptor initService(String url)
          if url is empty or null, a
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_TYPE

public static final String SERVICE_TYPE
See Also:
Constant Field Values

VERSION_100

public static final String VERSION_100
See Also:
Constant Field Values

VERSION_110

public static final String VERSION_110
See Also:
Constant Field Values

VERSION_111

public static final String VERSION_111
See Also:
Constant Field Values

OPERATION_GETMAP

public static final String OPERATION_GETMAP
See Also:
Constant Field Values

OPERATION_GETFEATUREINFO

public static final String OPERATION_GETFEATUREINFO
See Also:
Constant Field Values

OPERATION_GETCAPABILITIES

public static final String OPERATION_GETCAPABILITIES
See Also:
Constant Field Values
Constructor Detail

WMSAdapter

public WMSAdapter()
standard constructor


WMSAdapter

public WMSAdapter(String version)
Parameters:
version - the version of the service - use one of the static variables VERSION_100, VERSION_110 or VERSION_111.
Method Detail

initService

public ServiceDescriptor initService(String url)
                              throws ExceptionReport,
                                     OXFException
if url is empty or null, a

Specified by:
initService in interface IServiceAdapter
Parameters:
url - the base URL of the Service
Returns:
the ServiceDescriptor based on the retrieved capabilities document
Throws:
ExceptionReport - if service side Exception occurs.
OXFException - if internal Exception occurs.
See Also:
IServiceAdapter.initService(String)

doOperation

public OperationResult doOperation(Operation operation,
                                   ParameterContainer parameterContainer)
                            throws ExceptionReport,
                                   OXFException
Description copied from interface: IServiceAdapter
executes the OWS operation with the specified operationName of the OWS which is identified by the given serviceURL.

Specified by:
doOperation in interface IServiceAdapter
Parameters:
operation - the operation which the adapter has to execute on the service. this operation includes also the parameter values.
parameterContainer - contains all ParameterShells for the Operation.
Returns:
the result of the executed OWS operation.
Throws:
ExceptionReport - if service side exception occures.
OXFException - if internal exception occures.

getDescription

public String getDescription()
Specified by:
getDescription in interface IServiceAdapter
Returns:
a description of the implemented OGC Web Service Adapter.

getServiceType

public String getServiceType()
Specified by:
getServiceType in interface IServiceAdapter
Returns:
the type of the service which is connectable by this ServiceAdapter.

getSupportedVersions

public String[] getSupportedVersions()
Specified by:
getSupportedVersions in interface IServiceAdapter
Returns:
the versions of the services which are connectable by this ServiceAdapter. Should look like e.g. {"1.1.0","1.2.0"}.

getResourceOperationName

public String getResourceOperationName()
Specified by:
getResourceOperationName in interface IServiceAdapter
Returns:
the name of the serice operation which returns the data to be added to a map view as a layer.
(e.g.:WCS - GetCoverage; WMS - GetMap).
If the the service does not support such an operation this method returns null.


Copyright © 2005 - 2010 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.