@Configurable public abstract class AbstractKvpDecoder extends Object implements Decoder<AbstractServiceRequest<?>,Map<String,String>>
Modifier and Type | Field and Description |
---|---|
private int |
defaultResponse3DEPSG |
private int |
defaultResponseEPSG |
protected static org.slf4j.Logger |
LOGGER |
private int |
storage3DEPSG |
private int |
storageEPSG |
protected static int |
VALID_COORDINATE_SIZE |
Constructor and Description |
---|
AbstractKvpDecoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIfServiceVersionIsMissing(AbstractServiceRequest<?> request,
CompositeOwsException exceptions)
Check if service and version are contained in the request
|
private TemporalFilter |
createTemporalFilterFromValue(String value,
String valueReference) |
private TemporalFilter |
createTemporalFilterFromValue(String value,
String operator,
String valueReference) |
Set<String> |
getConformanceClasses() |
protected SwesExtension<SweText> |
getCrsExtension(String crs) |
int |
getDefaultResponse3DEPSG() |
int |
getDefaultResponseEPSG() |
protected SwesExtension<SweText> |
getLanguageExtension(String language) |
protected SwesExtension<SweBoolean> |
getReturnHumanReadableIdentifierExtension(String returnHumanReadableIdentifier) |
protected String |
getSrsNamePrefix() |
protected String |
getSrsNamePrefixSosV2() |
int |
getStorage3DEPSG() |
int |
getStorageEPSG() |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
protected SwesExtension<SweText> |
getSweTextFor(String identifier,
String value) |
private FilterConstants.TimeOperator |
getTimeOperator(String operator) |
protected boolean |
parseDefaultParameter(AbstractServiceRequest<?> request,
String parameterValues,
String parameterName) |
protected boolean |
parseExtensionParameter(AbstractServiceRequest<?> request,
String parameterValues,
String parameterName) |
protected Map<String,String> |
parseNamespaces(String parameterValues) |
protected SpatialFilter |
parseSpatialFilter(List<String> parameterValues,
String parameterName) |
protected List<TemporalFilter> |
parseTemporalFilter(List<String> parameterValues,
String parameterName) |
protected Time |
parseTime(String parameterValue,
String parameterName) |
protected Time |
parseValidTime(String parameterValue,
String parameterName) |
void |
setDefaultResponse3DEpsg(int epsgCode3D)
Set default response 3D EPSG code from settings
|
void |
setDefaultResponseEpsg(int epsgCode)
Set default response EPSG code from settings
|
void |
setStorage3DEpsg(int epsgCode3D)
Set storage 3D EPSG code from settings
|
void |
setStorageEpsg(int epsgCode)
Set storage EPSG code from settings
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, getDecoderKeyTypes
protected static final org.slf4j.Logger LOGGER
protected static final int VALID_COORDINATE_SIZE
private int storageEPSG
private int storage3DEPSG
private int defaultResponseEPSG
private int defaultResponse3DEPSG
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<AbstractServiceRequest<?>,Map<String,String>>
public int getStorageEPSG()
public int getStorage3DEPSG()
public int getDefaultResponseEPSG()
public int getDefaultResponse3DEPSG()
@Setting(value="service.defaultEpsg") public void setStorageEpsg(int epsgCode) throws ConfigurationException
epsgCode
- EPSG code from settingsConfigurationException
- If an error occurs@Setting(value="service.default3DEpsg") public void setStorage3DEpsg(int epsgCode3D) throws ConfigurationException
epsgCode3D
- 3D EPSG code from settingsConfigurationException
- If an error occurs@Setting(value="service.defaultResponseEpsg") public void setDefaultResponseEpsg(int epsgCode) throws ConfigurationException
epsgCode
- EPSG code from settingsConfigurationException
- If an error occurs@Setting(value="service.defaultRespopnse3DEpsg") public void setDefaultResponse3DEpsg(int epsgCode3D) throws ConfigurationException
epsgCode3D
- 3D EPSG code from settingsConfigurationException
- If an error occursprotected boolean parseExtensionParameter(AbstractServiceRequest<?> request, String parameterValues, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected boolean parseDefaultParameter(AbstractServiceRequest<?> request, String parameterValues, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected void checkIfServiceVersionIsMissing(AbstractServiceRequest<?> request, CompositeOwsException exceptions)
request
- Parsed requestexceptions
- CompositeOwsException
to add
MissingParameterValueException
sprotected SpatialFilter parseSpatialFilter(List<String> parameterValues, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected Time parseValidTime(String parameterValue, String parameterName) throws OwsExceptionReport, DateTimeParseException
parameterValue
- parameterName
- OwsExceptionReport
DateTimeParseException
protected Time parseTime(String parameterValue, String parameterName) throws CodedException
parameterValue
- CodedException
protected List<TemporalFilter> parseTemporalFilter(List<String> parameterValues, String parameterName) throws OwsExceptionReport, DateTimeParseException
private TemporalFilter createTemporalFilterFromValue(String value, String valueReference) throws OwsExceptionReport, DateTimeParseException
private TemporalFilter createTemporalFilterFromValue(String value, String operator, String valueReference) throws OwsExceptionReport, DateTimeParseException
private FilterConstants.TimeOperator getTimeOperator(String operator)
protected String getSrsNamePrefix()
protected String getSrsNamePrefixSosV2()
protected SwesExtension<SweText> getLanguageExtension(String language)
protected SwesExtension<SweText> getCrsExtension(String crs)
protected SwesExtension<SweBoolean> getReturnHumanReadableIdentifierExtension(String returnHumanReadableIdentifier)
protected SwesExtension<SweText> getSweTextFor(String identifier, String value)
Copyright © 2012-2015 52north.org. All Rights Reserved.