org.deegree.services.controller.exception.serializer
Class SOAPExceptionSerializer

java.lang.Object
  extended by org.deegree.commons.xml.XMLAdapter
      extended by org.deegree.services.controller.exception.serializer.XMLExceptionSerializer<SOAPException>
          extended by org.deegree.services.controller.exception.serializer.SOAPExceptionSerializer
All Implemented Interfaces:
ExceptionSerializer<SOAPException>

public class SOAPExceptionSerializer
extends XMLExceptionSerializer<SOAPException>

The SoapExceptionSerializer class TODO add class documentation here.

Version:
$Revision: 31688 $, $Date: 2011-08-30 15:05:12 +0200 (Tue, 30 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, nsContext, rootElement, XLN_NS
 
Constructor Summary
SOAPExceptionSerializer(org.apache.axiom.soap.SOAPVersion version, org.apache.axiom.soap.SOAPHeader header, org.apache.axiom.soap.SOAPFactory factory, XMLExceptionSerializer<OWSException> detailSerializer)
           
 
Method Summary
 void serializeExceptionToXML(XMLStreamWriter writer, SOAPException exception)
          Implementations can use the xml writer to serialize the given exception as a specific xml representation.
 
Methods inherited from class org.deegree.services.controller.exception.serializer.XMLExceptionSerializer
serializeException
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBigInt, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SOAPExceptionSerializer

public SOAPExceptionSerializer(org.apache.axiom.soap.SOAPVersion version,
                               org.apache.axiom.soap.SOAPHeader header,
                               org.apache.axiom.soap.SOAPFactory factory,
                               XMLExceptionSerializer<OWSException> detailSerializer)
Parameters:
version -
header -
factory - initialized to the correct soap version.
detailSerializer - which is designed to receive an OWSException
Method Detail

serializeExceptionToXML

public void serializeExceptionToXML(XMLStreamWriter writer,
                                    SOAPException exception)
                             throws XMLStreamException
Description copied from class: XMLExceptionSerializer
Implementations can use the xml writer to serialize the given exception as a specific xml representation.

Specified by:
serializeExceptionToXML in class XMLExceptionSerializer<SOAPException>
Parameters:
writer - a formatting xml writer, wrapped around an output stream.
exception - to serialize
Throws:
XMLStreamException - if an error occurred while serializing the given exception.


Copyright © 2011. All Rights Reserved.