Package org.n52.svalbard.encode
Class GetCapabilitiesResponseEncoder
- java.lang.Object
-
- org.n52.svalbard.encode.AbstractDelegatingEncoder<T,S>
-
- org.n52.svalbard.encode.AbstractXmlEncoder<org.apache.xmlbeans.XmlObject,T>
-
- org.n52.svalbard.encode.AbstractXmlResponseEncoder<T>
-
- org.n52.svalbard.encode.AbstractResponseEncoder<T>
-
- 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 Constructor Description GetCapabilitiesResponseEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.XmlObjectencodeGML32(Object o)Set<SchemaLocation>getConcreteSchemaLocations()Get 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, getSchemaLocations
-
Methods inherited from class org.n52.svalbard.encode.AbstractResponseEncoder
encode, getKeys
-
Methods inherited from class org.n52.svalbard.encode.AbstractXmlResponseEncoder
addNamespacePrefixToMap, encode, encode, getConcreteSchemaLocations, getResponseType, getSchemaRepository, setSchemaRepository, setValidate
-
Methods 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, substitute
-
Methods inherited from class org.n52.svalbard.encode.AbstractDelegatingEncoder
getEncoder, getEncoderRepository, setEncoderRepository
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.ConformanceClass
getConformanceClasses
-
Methods inherited from interface org.n52.svalbard.encode.Encoder
getContentType, getSupportedTypes
-
Methods inherited from interface org.n52.svalbard.encode.StreamingEncoder
encode
-
-
-
-
Method Detail
-
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 EncodingExceptionSets 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
public Set<SchemaLocation> getConcreteSchemaLocations()
Description copied from class:AbstractXmlResponseEncoderGet the concrete schema locations for thisOwsServiceResponseencoder- Specified by:
getConcreteSchemaLocationsin classAbstractXmlResponseEncoder<GetCapabilitiesResponse>- Returns:
- the concrete schema locations
-
encodeGML32
protected org.apache.xmlbeans.XmlObject encodeGML32(Object o) throws EncodingException
- Throws:
EncodingException
-
-