public class CswResponseExceptionMapper extends Object implements org.apache.cxf.jaxrs.client.ResponseExceptionMapper<CswException>
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>
Constructor and Description |
---|
CswResponseExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
CswException |
fromResponse(javax.ws.rs.core.Response response) |
public CswException fromResponse(javax.ws.rs.core.Response response)
fromResponse
in interface org.apache.cxf.jaxrs.client.ResponseExceptionMapper<CswException>
This work is licensed under a Creative Commons Attribution 4.0 International License.