public class Soap12XmlStreamWriter extends XmlStreamWriter<SoapResponse>
XmlStreamWriter
implementation for SOAP 1.2Modifier and Type | Field and Description |
---|---|
private SoapResponse |
response |
indent, out, XML_FRAGMENT, XML_VERSION
Constructor and Description |
---|
Soap12XmlStreamWriter()
constructor
|
Soap12XmlStreamWriter(SoapResponse response)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected Encoder<Object,AbstractServiceResponse> |
getEncoder(AbstractServiceResponse abstractServiceResponse) |
protected Encoder<Object,AbstractServiceResponse> |
getEncoder(EncoderKey key)
Get encoder for
EncoderKey |
protected SoapResponse |
getResponse()
Get the response element to encode and write to stream
|
protected Set<SchemaLocation> |
getSchemaLocation(SoapResponse response) |
void |
setResponse(SoapResponse response)
Set the response element to encode and write to stream
|
void |
write(OutputStream out)
Encode and write element to the
OutputStream |
void |
write(OutputStream out,
EncodingValues encodingValues)
Encode and write element to the
OutputStream |
void |
write(SoapResponse element,
OutputStream out)
Encode and write the elementToStream to the
OutputStream |
void |
write(SoapResponse element,
OutputStream out,
EncodingValues encodingValues)
Encode and write the elementToStream to the
OutputStream |
protected void |
writeBodyContent(AbstractServiceResponse bodyResponse)
Encode and write the
AbstractServiceResponse to stream |
protected void |
writeSoapBody(SoapResponse response)
Write the SOAP 1.2 body element
|
protected void |
writeSoapEnvelope(SoapResponse response)
Write the SOAP 1.2. envelope element
|
protected void |
writeSoapFault(SoapFault fault)
Encode and write SOAP 1.2 fault element to SOAP 1.2 body element
|
protected void |
writeSoapFaultFromException(OwsExceptionReport exception)
Encode and write
OwsExceptionReport element to SOAP 1.2 body
element |
attr, attr, attr, chars, chars, empty, end, end, endInline, finish, flush, getXmlWriter, init, namespace, start, start
addXlinkHrefAttr, addXlinkTitleAttr, getOutputStream, getReplacement, getXmlOutputFactory, init, init, init, rawText, schemaLocation, time, time, writeIndent, writeNewLine, writeXmlObject
private SoapResponse response
public Soap12XmlStreamWriter()
public Soap12XmlStreamWriter(SoapResponse response)
response
- Service internal SOAP response to encodepublic void write(OutputStream out) throws OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,SoapResponse>
out
- OutputStream to write the encoded elementOwsExceptionReport
- If an encoding error occurspublic void write(OutputStream out, EncodingValues encodingValues) throws OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,SoapResponse>
out
- OutputStream to write the encoded elementencodingValues
- EncodingValues
with additional informationOwsExceptionReport
- If an encoding error occurspublic void write(SoapResponse element, OutputStream out) throws OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,SoapResponse>
element
- Element to encode and write to streamout
- OutputStream to write the encoded elementOwsExceptionReport
- If an encoding error occurspublic void write(SoapResponse element, OutputStream out, EncodingValues encodingValues) throws OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,SoapResponse>
element
- Element to encode and write to streamout
- OutputStream to write the encoded elementencodingValues
- EncodingValues
with additional informationOwsExceptionReport
- If an encoding error occurspublic void setResponse(SoapResponse response)
response
- Service internal responseprotected SoapResponse getResponse()
protected void writeSoapEnvelope(SoapResponse response) throws XMLStreamException, OwsExceptionReport
response
- The response element to encode and write to streamXMLStreamException
- If an error occurs when writing to OutputStream
If an
error occurs when writing to OutputStream
OwsExceptionReport
- If an encoding error occursprotected Set<SchemaLocation> getSchemaLocation(SoapResponse response) throws OwsExceptionReport, XMLStreamException
OwsExceptionReport
XMLStreamException
protected void writeSoapBody(SoapResponse response) throws XMLStreamException, OwsExceptionReport
response
- The response element to encode and write to streamXMLStreamException
- If an error occurs when writing to OutputStream
OwsExceptionReport
- If an encoding error occursprotected void writeBodyContent(AbstractServiceResponse bodyResponse) throws XMLStreamException, OwsExceptionReport
AbstractServiceResponse
to streambodyResponse
- The service internal response to encode and writeXMLStreamException
- If an error occurs when writing to OutputStream
OwsExceptionReport
- If an encoding error occursprotected void writeSoapFault(SoapFault fault) throws OwsExceptionReport, XMLStreamException
fault
- Service internal SOAP fault representationOwsExceptionReport
- If an encoding error occursXMLStreamException
- If an error occurs when writing to OutputStream
protected void writeSoapFaultFromException(OwsExceptionReport exception) throws OwsExceptionReport, XMLStreamException
OwsExceptionReport
element to SOAP 1.2 body
elementexception
- Service internal OwsExceptionReport
OwsExceptionReport
- If an encoding error occursXMLStreamException
- If an error occurs when writing to OutputStream
protected Encoder<Object,AbstractServiceResponse> getEncoder(AbstractServiceResponse abstractServiceResponse) throws NoEncoderForKeyException
NoEncoderForKeyException
protected Encoder<Object,AbstractServiceResponse> getEncoder(EncoderKey key) throws NoEncoderForKeyException
EncoderKey
key
- Encoder key to get encoder forNoEncoderForKeyException
- If no matching encoder was foundCopyright © 2012-2015 52north.org. All Rights Reserved.