
org.n52.shetland.ogc.sos.SosConstants Maven / Gradle / Ivy
/*
* Copyright (C) 2015-2022 52°North Spatial Information Research GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.n52.shetland.ogc.sos;
import java.util.Collections;
import java.util.Set;
import org.n52.janmayen.http.MediaTypes;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
/**
* SosConstants holds all important and often used constants of OGC SOS (e.g. name of the getCapabilities
* operation) that are global between all supported versions
*
* @since 1.0.0
*/
public interface SosConstants {
String NS_SOS_PREFIX = "sos";
/**
* Constant for the content types of the accept formats
*/
Set ACCEPT_FORMATS = Collections.unmodifiableSet(Sets.newHashSet(MediaTypes.APPLICATION_XML.toString()));
String PROCEDURE_STANDARD_DESC_URL = "standardURL";
/**
* Constant for the service name of the SOS
*/
String SOS = "SOS";
/**
* String representing parameter value, if parameter is any in an operation request
*/
String PARAMETER_ANY = "ANY";
/**
* String representing parameter value, if parameter is no values in an operation request
*/
String PARAMETER_NO_VALUES = "NoValues";
String NOT_DEFINED = "NOT_DEFINED";
/**
* request timeout in ms for split requests to SOS instances
*/
long UPDATE_TIMEOUT = 10000;
/**
* Constant for actual implementing version Measurement
*/
String OBS_ID_PREFIX = "o_";
/**
* Constant for actual implementing version OvservationCollection
*/
String OBS_GENERIC_ID_PREFIX = "go_";
/**
* Constant for actual implementing version OvservationCollection
*/
String OBS_COL_ID_PREFIX = "oc_";
/**
* Constant for actual implementing version ObservationTemplate
*/
String OBS_TEMP_ID_PREFIX = "ot_";
/**
* Constant 'out-of-bands' for response mode, which means that the results in an observation response
* appear external to the observation element
*/
String RESPONSE_MODE_OUT_OF_BANDS = "out-of-bands";
/**
* Constant 'resultTemplate' for response mode, which means that the result is an ObservationTemplate for
* subsequent calls to GetResult operation
*/
String RESPONSE_RESULT_TEMPLATE = "resultTemplate";
/**
* Constant 'inline' for response mode, which means that results are contained inline the Observation
* elements of an observation response document
*/
String RESPONSE_MODE_INLINE = "inline";
/**
* Constant 'attached' for response mode, which means that result values of an observation response are
* attached as MIME attachments
*/
String RESPONSE_MODE_ATTACHED = "attached";
/**
* Array of constants for response mode.
*/
Set RESPONSE_MODES = ImmutableSet.of(RESPONSE_MODE_INLINE, RESPONSE_RESULT_TEMPLATE);
String MIN_VALUE = "MinValue";
String MAX_VALUE = "MaxValue";
String ALL_RELATED_FEATURES = "allFeatures";
String SEPARATOR_4_REL_FEAT = "_._";
String SEPARATOR_4_OFFERINGS = SEPARATOR_4_REL_FEAT;
String SOAP_REASON_RESPONSE_EXCEEDS_SIZE_LIMIT =
"The requested result set exceeds the response size limit of this service and thus cannot be delivered.";
String SOAP_REASON_INVALID_PROPERTY_OFFERING_COMBINATION =
"Observations for the requested combination of observedProperty and "
+ "offering do not use SWE Common encoded results.";
String GENERATED_IDENTIFIER_PREFIX = "generated_";
String PHENOMENON_TIME_VALUE_REFERENCE = "phenomenonTime";
String RESULT_TIME_VALUE_REFERENCE = "resultTime";
String VALID_TIME_VALUE_REFERENCE = "validTime";
String VALID_DESCRIBE_SENSOR_TIME_VALUE_REFERENCE = "validDescribeSensorTime";
/**
* the names of the operations supported by all versions of the SOS specification
*/
enum Operations {
GetCapabilities,
GetObservation,
GetObservationById,
DescribeSensor,
InsertObservation,
GetResult,
GetFeatureOfInterest;
}
enum Filter {
ValueReference,
TimePeriod,
TimeInstant;
}
/**
* enum with names of Capabilities sections supported by all versions
*/
enum CapabilitiesSections {
ServiceIdentification,
ServiceProvider,
OperationsMetadata,
Contents,
All;
}
/**
* enum with parameter names for getObservation request supported by all versions
*/
enum GetObservationParams {
srsName,
resultType,
startPosition,
maxRecords,
offering,
procedure,
observedProperty,
featureOfInterest,
result,
responseFormat,
resultModel,
responseMode,
SortBy,
BBOX;
}
/**
* enum with parameter names for getObservation request supported by all versions
*/
enum DescribeSensorParams {
procedure;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy