org.n52.oxf.serviceAdapters.sas
Class SASAdapter

java.lang.Object
  extended by org.n52.oxf.serviceAdapters.sas.SASAdapter
All Implemented Interfaces:
IServiceAdapter

public class SASAdapter
extends Object
implements IServiceAdapter

SAS-Adapter for the ox-framework

Author:
Arne Broering

Field Summary
static String ADVERTISE_OP_NAME
           
static String ALERT_OP_NAME
           
static String CANCEL_ADVERTISEMENT_OP_NAME
           
static String CANCEL_SUBSCRIPTION_OP_NAME
           
static String DESCRIBE_SENSOR_OP_NAME
           
static String DESCRIPTION
          Description of the SOSAdapter
static String GET_CAPABILITIES_OP_NAME
           
static String RENEW_ADVERTISEMENT_OP_NAME
           
static String RENEW_SUBSCRIPTION_OP_NAME
           
static String SERVICE_TYPE
          The Type of the service which is connectable by this ServiceAdapter
static String SUBSCRIBE_OP_NAME
           
static String[] SUPPORTED_VERSIONS
          the Versions of the services which are connectable by this ServiceAdapter.
 
Constructor Summary
SASAdapter()
          standard constructor
 
Method Summary
 OperationResult doOperation(Operation operation, ParameterContainer parameterContainer)
          performs a given service-operation with the given parameters
 String getDescription()
           
 String getResourceOperationName()
           
 SASRequestBuilder getSASRequestBuilder()
           
 String getServiceType()
           
 String[] getSupportedVersions()
           
 ServiceDescriptor initService(String url)
          initializes the ServiceDescriptor by requesting the capabilities document of the SAS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_CAPABILITIES_OP_NAME

public static final String GET_CAPABILITIES_OP_NAME
See Also:
Constant Field Values

DESCRIBE_SENSOR_OP_NAME

public static final String DESCRIBE_SENSOR_OP_NAME
See Also:
Constant Field Values

ALERT_OP_NAME

public static final String ALERT_OP_NAME
See Also:
Constant Field Values

ADVERTISE_OP_NAME

public static final String ADVERTISE_OP_NAME
See Also:
Constant Field Values

RENEW_ADVERTISEMENT_OP_NAME

public static final String RENEW_ADVERTISEMENT_OP_NAME
See Also:
Constant Field Values

CANCEL_ADVERTISEMENT_OP_NAME

public static final String CANCEL_ADVERTISEMENT_OP_NAME
See Also:
Constant Field Values

SUBSCRIBE_OP_NAME

public static final String SUBSCRIBE_OP_NAME
See Also:
Constant Field Values

RENEW_SUBSCRIPTION_OP_NAME

public static final String RENEW_SUBSCRIPTION_OP_NAME
See Also:
Constant Field Values

CANCEL_SUBSCRIPTION_OP_NAME

public static final String CANCEL_SUBSCRIPTION_OP_NAME
See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
Description of the SOSAdapter

See Also:
Constant Field Values

SERVICE_TYPE

public static final String SERVICE_TYPE
The Type of the service which is connectable by this ServiceAdapter

See Also:
Constant Field Values

SUPPORTED_VERSIONS

public static final String[] SUPPORTED_VERSIONS
the Versions of the services which are connectable by this ServiceAdapter. Should look like e.g. {"1.1.0","1.2.0"}.

Constructor Detail

SASAdapter

public SASAdapter()
standard constructor

Method Detail

initService

public ServiceDescriptor initService(String url)
                              throws ExceptionReport,
                                     OXFException
initializes the ServiceDescriptor by requesting the capabilities document of the SAS.

Specified by:
initService in interface IServiceAdapter
Parameters:
url - the base URL of the SAS
Returns:
the ServiceDescriptor based on the retrieved capabilities document
Throws:
ExceptionReport - if service side exception occurs
OXFException - if internal exception (in general parsing error or Capabilities doc is incorrect) occurs

doOperation

public OperationResult doOperation(Operation operation,
                                   ParameterContainer parameterContainer)
                            throws ExceptionReport,
                                   OXFException
performs a given service-operation with the given parameters

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.

getSASRequestBuilder

public SASRequestBuilder getSASRequestBuilder()


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