public class CSWAdapter extends Object implements IServiceAdapter
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIBE_RECORD |
static String |
DESCRIPTION
Description of the CSWAdapter
|
static String |
GET_CAPABILITIES |
static String |
GET_DOMAIN |
static String |
GET_RECORD_BY_ID |
static String |
GET_RECORDS |
static String |
HARVEST |
static String |
NAMESPACE |
static String |
RESOURCE_OPERATION
The name of the service operation which returns the data to be added to a map view as a layer.
|
static String |
SERVICE_TYPE
The Type of the service which is connectable by this ServiceAdapter
|
protected static List<String> |
SUPPORTED_VERSIONS
the Versions of the services which are connectable by this ServiceAdapter.
|
static String |
TRANSACTION |
Constructor and Description |
---|
CSWAdapter()
standard constructor
|
Modifier and Type | Method and Description |
---|---|
OperationResult |
doOperation(Operation operation,
ParameterContainer parameters) |
String |
getDescription() |
String |
getResourceOperationName() |
String |
getServiceType() |
String[] |
getSupportedVersions() |
ServiceDescriptor |
initService(net.opengis.cat.csw.x202.CapabilitiesDocument capsDoc) |
ServiceDescriptor |
initService(OperationResult getCapabilitiesResult) |
ServiceDescriptor |
initService(String url)
initializes the ServiceDescriptor by requesting the capabilities document of the CSW.
|
public static final String GET_CAPABILITIES
public static final String DESCRIBE_RECORD
public static final String GET_RECORDS
public static final String GET_RECORD_BY_ID
public static final String HARVEST
public static final String TRANSACTION
public static final String GET_DOMAIN
public static final String DESCRIPTION
public static final String SERVICE_TYPE
protected static final List<String> SUPPORTED_VERSIONS
public static final String RESOURCE_OPERATION
public static final String NAMESPACE
public ServiceDescriptor initService(String url) throws ExceptionReport, OXFException
initService
in interface IServiceAdapter
url
- the base URL of the CSWExceptionReport
- if service side exception occursOXFException
- if internal exception (in general parsing error or Capabilities doc is incorrect) occurspublic ServiceDescriptor initService(OperationResult getCapabilitiesResult) throws ExceptionReport, OXFException
ExceptionReport
OXFException
public ServiceDescriptor initService(net.opengis.cat.csw.x202.CapabilitiesDocument capsDoc) throws OXFException
OXFException
public OperationResult doOperation(Operation operation, ParameterContainer parameters) throws ExceptionReport, OXFException
doOperation
in interface IServiceAdapter
operation
- the operation which the adapter has to execute on the service. this operation includes also the
parameter values.parameters
- Map which contains the parameters of the operation and the corresponding parameter valuesExceptionReport
- Report which contains the service sided exceptionsOXFException
- if the sending of the post message failed.public String getResourceOperationName()
getResourceOperationName
in interface IServiceAdapter
public String getDescription()
getDescription
in interface IServiceAdapter
public String getServiceType()
getServiceType
in interface IServiceAdapter
public String[] getSupportedVersions()
getSupportedVersions
in interface IServiceAdapter
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.