public boolean isVerbose() { return getSettings().isVerbose(); }
if (other.getTitle() != null) return false; } else if (!title.equals(other.getTitle())) return false; if (verbose != other.isVerbose()) return false; if (verboseExceptions != other.isVerboseExceptions()) return false;
contactInfo.getContactEmail() != null ? contactInfo.getContactEmail() : ""); properties.put("verbose", settingsInfo.isVerbose() ? "true" : "false"); properties.put("verboseExceptions", settingsInfo.isVerboseExceptions() ? "true" : "false");
protected void write( FeatureTypeInfo[] featureTypeInfos, OutputStream output, Operation describeFeatureType) throws IOException { WFSInfo wfs = getInfo(); // generates response, using general function String xmlResponse = generateTypes( featureTypeInfos, (DescribeFeatureTypeType) describeFeatureType.getParameters()[0]); if (!wfs.getGeoServer().getSettings().isVerbose()) { // strip out the formatting. This is pretty much the only way we // can do this, as the user files are going to have newline // characters and whatnot, unless we can get rid of formatting // when we read the file, which could be worth looking into if // this slows things down. xmlResponse = xmlResponse.replaceAll(">\n[ \\t\\n]*", ">"); xmlResponse = xmlResponse.replaceAll("\n[ \\t\\n]*", " "); } Writer writer = new OutputStreamWriter(output, wfs.getGeoServer().getSettings().getCharset()); writer.write(xmlResponse); writer.flush(); }
contactInfo.getContactEmail() != null ? contactInfo.getContactEmail() : ""); properties.put("verbose", settingsInfo.isVerbose() ? "true" : "false"); properties.put("verboseExceptions", settingsInfo.isVerboseExceptions() ? "true" : "false");
/** * Takes the <code>FeatureResult</code>s generated by the <code>execute</code> method in the * superclass and constructs a <code>DescribeLayerResult</code> which is passed to a <code> * GML2FeatureResponseDelegate</code>. * * @see AbstractFeatureInfoResponse#writeTo(OutputStream) */ @Override public void write(DescribeLayerModel results, DescribeLayerRequest request, OutputStream out) throws ServiceException, IOException { DescribeLayerTransformer transformer; transformer = new DescribeLayerTransformer(request.getBaseUrl()); Charset encoding = wms.getCharSet(); transformer.setEncoding(encoding); if (wms.getGeoServer().getSettings().isVerbose()) { transformer.setIndentation(2); } try { transformer.transform(request, out); out.flush(); } catch (TransformerException e) { throw new ServiceException(e); } } }