Class CswResponseExceptionMapper
java.lang.Object
org.codice.ddf.spatial.ogc.csw.catalog.common.source.CswResponseExceptionMapper
- All Implemented Interfaces:
org.apache.cxf.jaxrs.client.ResponseExceptionMapper<CswException>
public class CswResponseExceptionMapper
extends Object
implements org.apache.cxf.jaxrs.client.ResponseExceptionMapper<CswException>
Maps the exception report returned as a response from a CSW service into a
CswException.
The format of the XML error response is specified by, and shall validate against, the exception response schema defined in clause 8 of the OWS Common Implementation Specification. One or more exceptions can be contained in the exception report. See section 10.3.7 of the CSW specification for details.
An example of an exception report returned by a CSW service would be:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ows:ExceptionReport version="1.2.0" xmlns:ns16="http://www.opengis.net/ows/1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cat="http://www.opengis.net/cat/csw" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:fra="http://www.cnig.gouv.fr/2005/fra" xmlns:ins="http://www.inspire.org" xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:dct="http://purl.org/dc/terms/" xmlns:ows="http://www.opengis.net/ows"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:gmi="http://www.isotc211.org/2005/gmi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ows:Exception exceptionCode="OPERATION_NOT_SUPPORTED">
<ows:ExceptionText>The XML request is not valid.
Cause:unexpected element (uri:"", local:"GetRecords"). Expected elements are ...
</ows:Exception>
</ows:ExceptionReport>
- Author:
- rodgersh
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CswResponseExceptionMapper
public CswResponseExceptionMapper()
-
-
Method Details
-
fromResponse
- Specified by:
fromResponsein interfaceorg.apache.cxf.jaxrs.client.ResponseExceptionMapper<CswException>
-