public class RegisterSensorParameters extends Sos100RequestParameters
Modifier and Type | Field and Description |
---|---|
(package private) static String |
REGISTER_SENSOR_ML_DOC_PARAMETER |
(package private) static String |
REGISTER_SENSOR_OBSERVATION_TEMPLATE |
(package private) static String |
REGISTER_SENSOR_OBSERVATION_TYPE |
(package private) static String |
REGISTER_SENSOR_OBSERVATION_TYPE_CATEGORY |
CHARSET, MIME_TYPE
SERVICE_TYPE, SERVICE_VERSION
Constructor and Description |
---|
RegisterSensorParameters(String sensorDescription,
String observationTemplate)
Creates RegisterSensor parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValid() |
void |
setObservationTemplate(String observationTemplate)
Overrides required observationTemplate parameter.
|
void |
setSensorDescription(String sensorDescription)
Overrides required sensorDescription parameter.
|
getAuthToken, isSetAuthtoken, setAuthtoken
isEmpty, isSetMimetype, setCharset, setType
addNonEmpty, addNonEmpty, addParameterEnumValues, addParameterStringValues, addParameterValue, addParameterValues, contains, getAllValues, getParameterNames, getSingleValue, hasMultipleValues, isEmpty, isEmptyString, isEmptyValue, isSingleValue, mergeWith, remove, removeAll
static final String REGISTER_SENSOR_ML_DOC_PARAMETER
static final String REGISTER_SENSOR_OBSERVATION_TEMPLATE
static final String REGISTER_SENSOR_OBSERVATION_TYPE_CATEGORY
static final String REGISTER_SENSOR_OBSERVATION_TYPE
public RegisterSensorParameters(String sensorDescription, String observationTemplate)
sensorDescription
- the sensor's description document.observationTemplate
- the sensor's observation template.IllegalArgumentException
- if passed arguments are null
or empty.public void setSensorDescription(String sensorDescription)
sensorDescription
- the new sensorDescription.IllegalArgumentException
- if passed arguments are null
or empty.public void setObservationTemplate(String observationTemplate)
observationTemplate
- the new observationTemplate.IllegalArgumentException
- if passed arguments are null
or empty.public boolean isValid()
isValid
in class MimetypeAwareRequestParameters
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.