org.deegree.services.ows
Class OWSException120XMLAdapter

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

public class OWSException120XMLAdapter
extends XMLExceptionSerializer<OWSException>

XMLExceptionSerializer for OWS Commons 1.2.0 ExceptionReports. TODO the OGC 07-006r1 spec defines the exception version 1.2.0 but the OWS schema location 1.0.0

Version:
$Revision: 31896 $, $Date: 2011-09-15 15:12:23 +0200 (Thu, 15 Sep 2011) $
Author:
Steffen Thomas, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, nsContext, rootElement, XLN_NS
 
Constructor Summary
OWSException120XMLAdapter()
           
 
Method Summary
 void serializeExceptionToXML(XMLStreamWriter writer, OWSException ex)
          Export an ExceptionReport to the ows 1.0.0 format.
 
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

OWSException120XMLAdapter

public OWSException120XMLAdapter()
Method Detail

serializeExceptionToXML

public void serializeExceptionToXML(XMLStreamWriter writer,
                                    OWSException ex)
                             throws XMLStreamException
Export an ExceptionReport to the ows 1.0.0 format.

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


Copyright © 2011. All Rights Reserved.