public abstract class AbstractSoapDecoder extends Object implements Decoder<SoapRequest,org.apache.xmlbeans.XmlObject>
Modifier and Type | Field and Description |
---|---|
private Set<DecoderKey> |
decoderKeys |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
AbstractSoapDecoder(String namespace) |
Modifier and Type | Method and Description |
---|---|
protected String |
checkSoapAction(String soapAction,
List<SoapHeader> soapHeaders) |
protected abstract SoapRequest |
createEnvelope(org.apache.xmlbeans.XmlObject xml) |
protected abstract SoapRequest |
createFault(OwsExceptionReport xml) |
SoapRequest |
decode(org.apache.xmlbeans.XmlObject xmlObject)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
protected org.apache.xmlbeans.XmlObject |
getSOAPBodyContent(SOAPMessage message)
Parses the SOAPBody content to a text representation
|
protected List<SoapHeader> |
getSoapHeader(SOAPHeader soapHeader) |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private static final org.slf4j.Logger LOGGER
private final Set<DecoderKey> decoderKeys
public AbstractSoapDecoder(String namespace)
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<SoapRequest,org.apache.xmlbeans.XmlObject>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<SoapRequest,org.apache.xmlbeans.XmlObject>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public SoapRequest decode(org.apache.xmlbeans.XmlObject xmlObject) throws OwsExceptionReport
Decoder
decode
in interface Decoder<SoapRequest,org.apache.xmlbeans.XmlObject>
xmlObject
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprotected abstract SoapRequest createEnvelope(org.apache.xmlbeans.XmlObject xml) throws OwsExceptionReport
OwsExceptionReport
protected abstract SoapRequest createFault(OwsExceptionReport xml)
protected org.apache.xmlbeans.XmlObject getSOAPBodyContent(SOAPMessage message) throws OwsExceptionReport
message
- SOAP messageOwsExceptionReport
- * if an error occurs.protected List<SoapHeader> getSoapHeader(SOAPHeader soapHeader)
protected String checkSoapAction(String soapAction, List<SoapHeader> soapHeaders)
Copyright © 2012-2015 52north.org. All Rights Reserved.