public abstract class ResourceDecoder extends RestDecoder
Modifier and Type | Field and Description |
---|---|
protected Constants |
bindingConstants |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
ResourceDecoder() |
Modifier and Type | Method and Description |
---|---|
protected String |
checkParameterSingleValue(String parameterValue,
String parameterName) |
protected String |
createBadGetRequestMessage(String resourceType,
boolean globalResoureAllowed,
boolean byIdAllowed,
boolean searchAllowed) |
protected GetCapabilitiesRequest |
createGetCapabilitiesRequest() |
protected GetCapabilitiesRequest |
createGetCapabilitiesRequestWithContentSectionOnly() |
protected OwsExceptionReport |
createHttpMethodForThisResourceNotSupportedException(String httpMethod,
String resourceType) |
private TemporalFilter |
createTemporalFilterFromValue(String value,
String valueReference) |
protected abstract RestRequest |
decodeDeleteRequest(javax.servlet.http.HttpServletRequest httpRequest,
String pathPayload) |
protected abstract RestRequest |
decodeGetRequest(javax.servlet.http.HttpServletRequest httpRequest,
String pathPayload) |
protected abstract RestRequest |
decodeOptionsRequest(javax.servlet.http.HttpServletRequest httpRequest,
String pathPayload) |
protected abstract RestRequest |
decodePostRequest(javax.servlet.http.HttpServletRequest httpRequest,
String pathPayload) |
protected abstract RestRequest |
decodePutRequest(javax.servlet.http.HttpServletRequest httpRequest,
String pathPayload) |
protected RestRequest |
decodeRestRequest(javax.servlet.http.HttpServletRequest httpRequest) |
protected Map<String,String> |
getKvPEncodedParameters(javax.servlet.http.HttpServletRequest httpRequest) |
protected String |
getRelationIdentifierWithNamespace(String resourceRelationIdentifier) |
protected String |
getResourceIdFromRestfulHref(String restfulHref) |
protected String |
getSrsNamePrefix() |
protected String |
getSrsNamePrefixSosV2() |
protected boolean |
isContentOfPostRequestValid(javax.servlet.http.HttpServletRequest httpRequest) |
protected Map<String,String> |
parseNamespaces(String values)
org.n52.sos.decode.SosKvpDecoderv20#parseNamespaces(String) |
protected SpatialFilter |
parseSpatialFilter(List<String> parameterValues,
String parameterName)
org.n52.sos.decode.kvp.v2.AbstractKvpDecoder#parseSpatialFilter(List
TODO move to KVP map decoder to share code |
protected List<TemporalFilter> |
parseTemporalFilter(List<String> parameterValues) |
protected List<String> |
splitKvpParameterValueToList(String value) |
decode, getConformanceClasses, getDecoderKeyTypes, getResourceTypeFromPathInfoWithWorkingUrl, getSupportedTypes
private static final org.slf4j.Logger LOGGER
protected Constants bindingConstants
protected abstract RestRequest decodeGetRequest(javax.servlet.http.HttpServletRequest httpRequest, String pathPayload) throws OwsExceptionReport, DateTimeException
OwsExceptionReport
DateTimeException
protected abstract RestRequest decodeDeleteRequest(javax.servlet.http.HttpServletRequest httpRequest, String pathPayload) throws OwsExceptionReport
OwsExceptionReport
protected abstract RestRequest decodePostRequest(javax.servlet.http.HttpServletRequest httpRequest, String pathPayload) throws OwsExceptionReport
OwsExceptionReport
protected abstract RestRequest decodePutRequest(javax.servlet.http.HttpServletRequest httpRequest, String pathPayload) throws OwsExceptionReport
OwsExceptionReport
protected abstract RestRequest decodeOptionsRequest(javax.servlet.http.HttpServletRequest httpRequest, String pathPayload)
protected RestRequest decodeRestRequest(javax.servlet.http.HttpServletRequest httpRequest) throws OwsExceptionReport, DateTimeException
OwsExceptionReport
DateTimeException
protected String getRelationIdentifierWithNamespace(String resourceRelationIdentifier)
protected GetCapabilitiesRequest createGetCapabilitiesRequest()
protected GetCapabilitiesRequest createGetCapabilitiesRequestWithContentSectionOnly()
protected OwsExceptionReport createHttpMethodForThisResourceNotSupportedException(String httpMethod, String resourceType)
protected Map<String,String> getKvPEncodedParameters(javax.servlet.http.HttpServletRequest httpRequest)
protected String checkParameterSingleValue(String parameterValue, String parameterName) throws OwsExceptionReport
OwsExceptionReport
protected Map<String,String> parseNamespaces(String values)
org.n52.sos.decode.SosKvpDecoderv20#parseNamespaces(String)
protected List<TemporalFilter> parseTemporalFilter(List<String> parameterValues) throws DateTimeException, InvalidParameterValueException
private TemporalFilter createTemporalFilterFromValue(String value, String valueReference) throws DateTimeException, InvalidParameterValueException
protected SpatialFilter parseSpatialFilter(List<String> parameterValues, String parameterName) throws OwsExceptionReport
org.n52.sos.decode.kvp.v2.AbstractKvpDecoder#parseSpatialFilter(List, String)
TODO move to KVP map decoder to share codeOwsExceptionReport
protected String getSrsNamePrefix()
protected String getSrsNamePrefixSosV2()
protected boolean isContentOfPostRequestValid(javax.servlet.http.HttpServletRequest httpRequest) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.