/** * Actually encodes the response into a set of records * * @param output * @param result * @param request * @param csw */ protected void transformResponse(OutputStream output, CloseableIterator<String> result, RequestBaseType request, CSWInfo csw) { CSWDomainValuesTransformer transformer = new CSWDomainValuesTransformer(request, csw.isCanonicalSchemaLocation()); try { transformer.transform(result, output); } catch (TransformerException e) { throw new ServiceException(e); } }
addAttribute(attributes, "xmlns:csw", CSW.NAMESPACE); addAttribute(attributes, "xmlns:dc", DC.NAMESPACE); addAttribute(attributes, "xmlns:dct", DCT.NAMESPACE); addAttribute(attributes, "xmlns:ows", OWS.NAMESPACE); addAttribute(attributes, "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); locationDef.append(CSW.NAMESPACE).append(" "); locationDef.append(cswSchemaLocation("CSW-discovery.xsd")); addAttribute(attributes, locationAtt, locationDef.toString()); addAttribute(domainValuesElementAtts, "type", "csw:Record"); start(domainValuesElement, domainValuesElementAtts);
addAttribute(attributes, "xmlns:csw", CSW.NAMESPACE); addAttribute(attributes, "xmlns:dc", DC.NAMESPACE); addAttribute(attributes, "xmlns:dct", DCT.NAMESPACE); addAttribute(attributes, "xmlns:ows", OWS.NAMESPACE); addAttribute(attributes, "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); locationDef.append(CSW.NAMESPACE).append(" "); locationDef.append(cswSchemaLocation("CSW-discovery.xsd")); addAttribute(attributes, locationAtt, locationDef.toString()); addAttribute(domainValuesElementAtts, "type", "csw:Record"); start(domainValuesElement, domainValuesElementAtts);
/** * Actually encodes the response into a set of records * * @param output * @param result * @param request * @param csw */ protected void transformResponse( OutputStream output, CloseableIterator<String> result, RequestBaseType request, CSWInfo csw) { CSWDomainValuesTransformer transformer = new CSWDomainValuesTransformer(request, csw.isCanonicalSchemaLocation()); try { transformer.transform(result, output); } catch (TransformerException e) { throw new ServiceException(e); } } }