@Configurable public class OwsEncoderv110 extends AbstractXmlEncoder<Object>
Modifier and Type | Field and Description |
---|---|
private static Set<EncoderKey> |
ENCODER_KEYS |
private boolean |
includeStackTraceInExceptionReport |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
OwsEncoderv110() |
Modifier and Type | Method and Description |
---|---|
private void |
addAllowedValues(net.opengis.ows.x11.DomainType domainType,
OwsAllowedValues value)
Add XML OWS AllowedValues to XML OWS DomainType
|
private void |
addConstraints(net.opengis.ows.x11.RequestMethodType method,
DCP dcp) |
private void |
addExceptionMessages(StringBuilder exceptionText,
Throwable exception) |
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private void |
addPossibleValues(net.opengis.ows.x11.DomainType domainType,
OwsPossibleValues value)
Add XML OWS PossibleValues to XML OWS DomainType
|
private void |
clearAbstracts(net.opengis.ows.x11.ServiceIdentificationDocument.ServiceIdentification serviceIdent) |
private void |
clearTitles(net.opengis.ows.x11.ServiceIdentificationDocument.ServiceIdentification serviceIdent) |
org.apache.xmlbeans.XmlObject |
encode(Object element,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
private void |
encodeDCP(net.opengis.ows.x11.DCPDocument.DCP xbDcp,
Map<String,? extends Collection<DCP>> supportedDcp) |
private net.opengis.ows.x11.DomainType |
encodeDomainType(OwsDomainType owsDomainType)
Encode OWS DomainType
|
protected net.opengis.ows.x11.OperationsMetadataDocument.OperationsMetadata |
encodeOperationsMetadata(OwsOperationsMetadata operationsMetadata)
Sets the OperationsMetadata section to the capabilities document.
|
private net.opengis.ows.x11.ExceptionDocument |
encodeOwsException(CodedException owsException) |
private net.opengis.ows.x11.ExceptionReportDocument |
encodeOwsExceptionReport(OwsExceptionReport owsExceptionReport) |
private net.opengis.ows.x11.LanguageStringType |
encodeOwsLanguageString(LocalizedString ls) |
private org.apache.xmlbeans.XmlObject |
encodeOwsMetadata(OwsMetadata owsMeatadata)
Encode OwsMetadata element
|
private org.apache.xmlbeans.XmlObject |
encodeServiceIdentification(SosServiceIdentification sosServiceIdentification)
Set the service identification information
|
private org.apache.xmlbeans.XmlObject |
encodeServiceProvider(SosServiceProvider sosServiceProvider)
Set the service provider information
|
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
protected boolean |
isEncodeExceptionsOnly(Map<SosConstants.HelperValues,String> additionalValues) |
void |
setIncludeStackTrace(boolean includeStackTraceInExceptionReport) |
private void |
setParamDataType(net.opengis.ows.x11.DomainType domainType,
OwsParameterDataType parameterValue) |
private void |
setParameterValue(net.opengis.ows.x11.DomainType domainType,
String name,
Collection<OwsParameterValue> values) |
private void |
setParamList(net.opengis.ows.x11.DomainType domainType,
OwsParameterValuePossibleValues parameterValue)
Sets operation parameters to AnyValue, NoValues or AllowedValues.
|
private void |
setParamRange(net.opengis.ows.x11.DomainType domainType,
OwsParameterValueRange parameterValue)
Sets the EventTime parameter.
|
encode, getConformanceClasses, getContentType, getSupportedTypes
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEYS
private boolean includeStackTraceInExceptionReport
@Setting(value="misc.includeStackTraceInExceptionReport") public void setIncludeStackTrace(boolean includeStackTraceInExceptionReport)
public Set<EncoderKey> getEncoderKeyType()
EncoderKey
)public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
Encoder
addNamespacePrefixToMap
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
addNamespacePrefixToMap
in class AbstractXmlEncoder<Object>
public Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public org.apache.xmlbeans.XmlObject encode(Object element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
Encoder
element
- the object to encodeadditionalValues
- the helper valuesOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderprotected boolean isEncodeExceptionsOnly(Map<SosConstants.HelperValues,String> additionalValues)
private org.apache.xmlbeans.XmlObject encodeServiceIdentification(SosServiceIdentification sosServiceIdentification) throws OwsExceptionReport
sosServiceIdentification
- SOS representation of ServiceIdentification.OwsExceptionReport
- * if the file is invalid.private void clearTitles(net.opengis.ows.x11.ServiceIdentificationDocument.ServiceIdentification serviceIdent)
private void clearAbstracts(net.opengis.ows.x11.ServiceIdentificationDocument.ServiceIdentification serviceIdent)
private org.apache.xmlbeans.XmlObject encodeServiceProvider(SosServiceProvider sosServiceProvider) throws OwsExceptionReport
sosServiceProvider
- SOS representation of ServiceProvider.OwsExceptionReport
- * if the file is invalid.protected net.opengis.ows.x11.OperationsMetadataDocument.OperationsMetadata encodeOperationsMetadata(OwsOperationsMetadata operationsMetadata) throws OwsExceptionReport
operationsMetadata
- SOS metadatas for the operationsCompositeOwsException
- * if an error occursOwsExceptionReport
private net.opengis.ows.x11.ExceptionDocument encodeOwsException(CodedException owsException)
private void addExceptionMessages(StringBuilder exceptionText, Throwable exception)
private net.opengis.ows.x11.ExceptionReportDocument encodeOwsExceptionReport(OwsExceptionReport owsExceptionReport)
private void encodeDCP(net.opengis.ows.x11.DCPDocument.DCP xbDcp, Map<String,? extends Collection<DCP>> supportedDcp) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.ows.x11.DomainType encodeDomainType(OwsDomainType owsDomainType)
owsDomainType
- Service OWS DomainTypeprivate void addPossibleValues(net.opengis.ows.x11.DomainType domainType, OwsPossibleValues value)
domainType
- XML OWS DomainTypevalue
- Service OWS PossibleValues to addprivate void addAllowedValues(net.opengis.ows.x11.DomainType domainType, OwsAllowedValues value)
domainType
- XML OWS DomainTypevalue
- Service OWS AllowedValues to addprivate void setParameterValue(net.opengis.ows.x11.DomainType domainType, String name, Collection<OwsParameterValue> values) throws OwsExceptionReport
OwsExceptionReport
private void setParamList(net.opengis.ows.x11.DomainType domainType, OwsParameterValuePossibleValues parameterValue)
domainType
- Paramter.parameterValue
- .getValues() List of values.private void setParamDataType(net.opengis.ows.x11.DomainType domainType, OwsParameterDataType parameterValue)
private void setParamRange(net.opengis.ows.x11.DomainType domainType, OwsParameterValueRange parameterValue) throws OwsExceptionReport
domainType
- Parameter.parameterValue
- CompositeOwsException
OwsExceptionReport
private void addConstraints(net.opengis.ows.x11.RequestMethodType method, DCP dcp) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject encodeOwsMetadata(OwsMetadata owsMeatadata)
owsMeatadata
- SOS OwsMetadata objectprivate net.opengis.ows.x11.LanguageStringType encodeOwsLanguageString(LocalizedString ls)
Copyright © 2012-2015 52north.org. All Rights Reserved.