public class SOSWrapper extends Object
SOSAdapter
Modifier | Constructor and Description |
---|---|
protected |
SOSWrapper(ServiceDescriptor serviceDescriptor,
ISOSRequestBuilder.Binding binding) |
Modifier and Type | Method and Description |
---|---|
OperationResult |
doDeleteSensor(String sensorId) |
OperationResult |
doDeleteSensor(String sensorId,
String authtoken) |
OperationResult |
doDescribeSensor(DescribeSensorParameters parameters)
Performs a DescribeSensor request.
|
OperationResult |
doGetFeatureOfInterest(GetFeatureOfInterestParameterBuilder_v100 builder)
Requests a feature of interest.
|
OperationResult |
doGetObservation(GetObservationParameterBuilder_v100 builder)
Requests observation(s).
|
OperationResult |
doGetObservationById(GetObservationByIdParameterBuilder_v100 builder)
Requests an observation by its id.
|
OperationResult |
doInsertObservation(InsertObservationParameters parameters)
Requests the insertion of an observation.
|
OperationResult |
doInsertSensor(InsertSensorParameters insertSensorParameters) |
OperationResult |
doRegisterSensor(RegisterSensorParameters parameters)
Requests the registration of a sensor.
|
int |
getConnectionTimeout() |
int |
getReadTimeout() |
ServiceDescriptor |
getServiceDescriptor()
Return the GetCapabilities specific description of the service.
|
SOSWrapper |
setAuthtoken(String authtoken)
The authtoken can be used when the SOS transactional security is enabled
and secured with an token.
|
SOSWrapper |
setBasicAuthHost(String basicAuthHost)
Used for http basic auth: storing the host requiring the credentials in the following format
|
SOSWrapper |
setBasicAuthPassword(String basicAuthPassword) |
SOSWrapper |
setBasicAuthUser(String basicAuthUser) |
void |
setConnectionTimeOut(int connectionTimeout) |
void |
setReadTimeout(int readTimeout) |
protected SOSWrapper(ServiceDescriptor serviceDescriptor, ISOSRequestBuilder.Binding binding)
public OperationResult doDescribeSensor(DescribeSensorParameters parameters) throws OXFException, ExceptionReport
parameters
- parameter assemblerOXFException
ExceptionReport
public OperationResult doGetObservation(GetObservationParameterBuilder_v100 builder) throws OXFException, ExceptionReport
builder
- parameter assemblerOXFException
ExceptionReport
public OperationResult doRegisterSensor(RegisterSensorParameters parameters) throws OXFException, ExceptionReport
parameters
- parameter assemblerOXFException
ExceptionReport
public OperationResult doInsertSensor(InsertSensorParameters insertSensorParameters) throws OXFException, ExceptionReport
insertSensorParameters
- OXFException
ExceptionReport
#doRegisterSensor(RegisterSensorParameters)}
public OperationResult doDeleteSensor(String sensorId) throws OXFException, ExceptionReport
OXFException
ExceptionReport
public OperationResult doDeleteSensor(String sensorId, String authtoken) throws OXFException, ExceptionReport
OXFException
ExceptionReport
public OperationResult doInsertObservation(InsertObservationParameters parameters) throws OXFException, ExceptionReport
parameters
- parameter assemblerOXFException
ExceptionReport
public OperationResult doGetObservationById(GetObservationByIdParameterBuilder_v100 builder) throws OXFException, ExceptionReport
builder
- parameter assemblerOXFException
ExceptionReport
public OperationResult doGetFeatureOfInterest(GetFeatureOfInterestParameterBuilder_v100 builder) throws OXFException, ExceptionReport
builder
- parameter assemblerOXFException
ExceptionReport
public ServiceDescriptor getServiceDescriptor()
public int getConnectionTimeout()
public void setConnectionTimeOut(int connectionTimeout)
connectionTimeout
- the new connectionTimeout to use in ms.
Values below will be ignored by SimpleHttpClient
.public int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout
- the new readTimeout aka. socketTimeout to use in ms.
Values below will be ignored by SimpleHttpClient
.public SOSWrapper setAuthtoken(String authtoken)
authtoken
- the authtoken to useSOSWrapper
instancepublic SOSWrapper setBasicAuthHost(String basicAuthHost)
basicAuthHost
- scheme://target.host:targetport
, e.g. https://www.example.com:443
public SOSWrapper setBasicAuthUser(String basicAuthUser)
public SOSWrapper setBasicAuthPassword(String basicAuthPassword)
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.