Package org.n52.svalbard.encode
Class GetCapabilitiesResponseEncoder
java.lang.Object
org.n52.svalbard.encode.AbstractDelegatingEncoder<org.apache.xmlbeans.XmlObject,GetCapabilitiesResponse>
org.n52.svalbard.encode.AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,GetCapabilitiesResponse>
org.n52.svalbard.encode.AbstractXmlResponseEncoder<GetCapabilitiesResponse>
org.n52.svalbard.encode.AbstractResponseEncoder<GetCapabilitiesResponse>
org.n52.svalbard.encode.AbstractSosResponseEncoder<GetCapabilitiesResponse>
org.n52.svalbard.encode.GetCapabilitiesResponseEncoder
- All Implemented Interfaces:
Component<EncoderKey>,Keyed<EncoderKey>,ConformanceClass,Encoder<org.apache.xmlbeans.XmlObject,,GetCapabilitiesResponse> SchemaAwareEncoder<org.apache.xmlbeans.XmlObject,,GetCapabilitiesResponse> StreamingEncoder<org.apache.xmlbeans.XmlObject,GetCapabilitiesResponse>
public class GetCapabilitiesResponseEncoder
extends AbstractSosResponseEncoder<GetCapabilitiesResponse>
TODO JavaDoc
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.xmlbeans.XmlObjectcreate(GetCapabilitiesResponse response) Create anXmlObjectfrom theOwsServiceResponseobjectprotected voidcreate(GetCapabilitiesResponse response, OutputStream outputStream, EncodingContext encodingValues) Override this method in concrete response encoder if streaming is supported for this operations.protected org.apache.xmlbeans.XmlObjectGet the concrete schema locations for thisOwsServiceResponseencoderprotected voidsetContents(net.opengis.sos.x20.CapabilitiesType.Contents xbContents, Collection<SosObservationOffering> offerings, String version) Sets the content section to the Capabilities document.Methods inherited from class org.n52.svalbard.encode.AbstractSosResponseEncoder
createExtension, encodeFes, encodeFes, encodeGml, encodeGml, encodeOws, encodeOws, encodeSwe, encodeSwe, getSchemaLocationsMethods inherited from class org.n52.svalbard.encode.AbstractResponseEncoder
encode, getKeysMethods inherited from class org.n52.svalbard.encode.AbstractXmlResponseEncoder
addNamespacePrefixToMap, encode, encode, getConcreteSchemaLocations, getResponseType, getSchemaRepository, setSchemaRepository, setValidateMethods inherited from class org.n52.svalbard.encode.AbstractXmlEncoder
encodeObjectToXml, encodeObjectToXml, encodeObjectToXmlDocument, encodeObjectToXmlDocument, encodeObjectToXmlPropertyType, encodeObjectToXmlPropertyType, encodeObjectToXmlText, encodeObjectToXmlText, getAndCheck, getContentType, getDocumentEncoder, getDocumentEncoder, getDocumentEncoderKey, getDocumentEncoderKey, getEncoder, getEncoder, getEncoderKey, getEncoderKey, getPropertyTypeEncoder, getPropertyTypeEncoder, getPropertyTypeEncoderKey, getPropertyTypeEncoderKey, getXmlOptions, setXmlOptions, substituteMethods inherited from class org.n52.svalbard.encode.AbstractDelegatingEncoder
getEncoder, getEncoderRepository, setEncoderRepositoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClassesMethods inherited from interface org.n52.svalbard.encode.Encoder
getContentType, getSupportedTypesMethods inherited from interface org.n52.svalbard.encode.StreamingEncoder
encode
-
Constructor Details
-
GetCapabilitiesResponseEncoder
public GetCapabilitiesResponseEncoder()
-
-
Method Details
-
create
protected void create(GetCapabilitiesResponse response, OutputStream outputStream, EncodingContext encodingValues) throws EncodingException Description copied from class:AbstractXmlResponseEncoderOverride this method in concrete response encoder if streaming is supported for this operations.- Overrides:
createin classAbstractXmlResponseEncoder<GetCapabilitiesResponse>- Parameters:
response- Implementation ofOwsServiceResponseoutputStream-OutputStreamto writeencodingValues-EncodingContextwith additional indicators for encoding- Throws:
EncodingException- If an error occurs during encoding/writing to stream
-
create
protected org.apache.xmlbeans.XmlObject create(GetCapabilitiesResponse response) throws EncodingException Description copied from class:AbstractXmlResponseEncoderCreate anXmlObjectfrom theOwsServiceResponseobject- Specified by:
createin classAbstractXmlResponseEncoder<GetCapabilitiesResponse>- Parameters:
response-OwsServiceResponseto encode- Returns:
- XML encoded
OwsServiceResponse - Throws:
EncodingException- If an error occurs during the encoding
-
setContents
protected void setContents(net.opengis.sos.x20.CapabilitiesType.Contents xbContents, Collection<SosObservationOffering> offerings, String version) throws EncodingException Sets the content section to the Capabilities document.- Parameters:
xbContents- SOS 2.0 contents sectionofferings- SOS offerings for contentsversion- SOS response version- Throws:
EncodingException- * if an error occurs.
-
getConcreteSchemaLocations
Description copied from class:AbstractXmlResponseEncoderGet the concrete schema locations for thisOwsServiceResponseencoder- Specified by:
getConcreteSchemaLocationsin classAbstractXmlResponseEncoder<GetCapabilitiesResponse>- Returns:
- the concrete schema locations
-
encodeGML32
- Throws:
EncodingException
-