public class RestDecoder extends Object implements Decoder<RestRequest,javax.servlet.http.HttpServletRequest>
Modifier and Type | Field and Description |
---|---|
private Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
RestDecoder()
constructor called by the service loader of the SOS instance
|
Modifier and Type | Method and Description |
---|---|
private Constants |
bindingConstants() |
RestRequest |
decode(javax.servlet.http.HttpServletRequest httpRequest)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
private ResourceDecoder |
getDecoderForResource(String httpRequestPathInfo) |
Set<DecoderKey> |
getDecoderKeyTypes() |
protected String |
getResourceTypeFromPathInfoWithWorkingUrl(String pathInfo) |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private boolean |
isAcceptHeaderOk(javax.servlet.http.HttpServletRequest httpRequest) |
private boolean |
isCapabilitiesRequest(String pathInfo) |
private boolean |
isFeaturesRequest(String pathInfo) |
private boolean |
isObservationsRequest(String pathInfo) |
private boolean |
isOfferingsRequest(String pathInfo) |
private boolean |
isSensorsRequest(String pathInfo) |
private boolean |
isServiceDefaultEndpoint(String pathInfo) |
private static final org.slf4j.Logger LOGGER
private final Set<DecoderKey> DECODER_KEYS
public RestDecoder()
public RestRequest decode(javax.servlet.http.HttpServletRequest httpRequest) throws OwsExceptionReport
Decoder
decode
in interface Decoder<RestRequest,javax.servlet.http.HttpServletRequest>
httpRequest
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate boolean isAcceptHeaderOk(javax.servlet.http.HttpServletRequest httpRequest) throws OwsExceptionReport
OwsExceptionReport
protected String getResourceTypeFromPathInfoWithWorkingUrl(String pathInfo)
private ResourceDecoder getDecoderForResource(String httpRequestPathInfo) throws OwsExceptionReport
OwsExceptionReport
private boolean isServiceDefaultEndpoint(String pathInfo)
private boolean isOfferingsRequest(String pathInfo)
private boolean isFeaturesRequest(String pathInfo)
private boolean isCapabilitiesRequest(String pathInfo)
private boolean isObservationsRequest(String pathInfo)
private boolean isSensorsRequest(String pathInfo)
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<RestRequest,javax.servlet.http.HttpServletRequest>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<RestRequest,javax.servlet.http.HttpServletRequest>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
private Constants bindingConstants()
Copyright © 2012-2015 52north.org. All Rights Reserved.