@Override public void setOutputEncoding(String outputEncoding) { cachedURLEscapingCharsetSet = false; super.setOutputEncoding(outputEncoding); }
setBooleanFormat(value); } else if (OUTPUT_ENCODING_KEY_SNAKE_CASE.equals(name) || OUTPUT_ENCODING_KEY_CAMEL_CASE.equals(name)) { setOutputEncoding(value); } else if (URL_ESCAPING_CHARSET_KEY_SNAKE_CASE.equals(name) || URL_ESCAPING_CHARSET_KEY_CAMEL_CASE.equals(name)) {
@Override public void setOutputEncoding(String outputEncoding) { cachedURLEscapingCharsetSet = false; super.setOutputEncoding(outputEncoding); }
@Override public void setOutputEncoding(String outputEncoding) { cachedURLEscapingCharsetSet = false; super.setOutputEncoding(outputEncoding); }
public void setOutputEncoding(String outputEncoding) { urlEscapingCharsetCached = false; super.setOutputEncoding(outputEncoding); }
public void write(Object value, OutputStream output, Operation operation) throws IOException, ServiceException { FeatureCollectionType fct = (FeatureCollectionType) value; FeatureCollection fc = (FeatureCollection) fct.getFeature().get(0); // setup template subsystem GeoServerTemplateLoader templateLoader = new GeoServerTemplateLoader(getClass()); templateLoader.setFeatureType(fc.getSchema()); Template template = null; synchronized (templateConfig) { templateConfig.setTemplateLoader(templateLoader); template = templateConfig.getTemplate("wfsvGetLog.ftl"); } try { template.setOutputEncoding("UTF-8"); template.process(fc, new OutputStreamWriter(output, Charset.forName("UTF-8"))); } catch (TemplateException e) { String msg = "Error occured processing template."; throw (IOException) new IOException(msg).initCause(e); } } }
public void write(Object value, OutputStream output, Operation operation) throws IOException, ServiceException { FeatureDiffReader[] diffReaders = (FeatureDiffReader[]) value; // setup template subsystem GeoServerTemplateLoader templateLoader = new GeoServerTemplateLoader(getClass()); templateLoader.setFeatureType(diffReaders[0].getSchema()); Template template = null; synchronized (templateConfig) { templateConfig.setTemplateLoader(templateLoader); template = templateConfig.getTemplate("wfsvGetDiff.ftl"); } try { template.setOutputEncoding("UTF-8"); template.process(diffReaders, new OutputStreamWriter(output, Charset.forName("UTF-8"))); } catch (TemplateException e) { String msg = "Error occured processing template."; throw (IOException) new IOException(msg).initCause(e); } finally { for (int i = 0; i < diffReaders.length; i++) { diffReaders[i].close(); } } } }
setBooleanFormat(value); } else if (OUTPUT_ENCODING_KEY.equals(key)) { setOutputEncoding(value); } else if (URL_ESCAPING_CHARSET_KEY.equals(key)) { setURLEscapingCharset(value);
setBooleanFormat(value); } else if (OUTPUT_ENCODING_KEY_SNAKE_CASE.equals(name) || OUTPUT_ENCODING_KEY_CAMEL_CASE.equals(name)) { setOutputEncoding(value); } else if (URL_ESCAPING_CHARSET_KEY_SNAKE_CASE.equals(name) || URL_ESCAPING_CHARSET_KEY_CAMEL_CASE.equals(name)) {
setBooleanFormat(value); } else if (OUTPUT_ENCODING_KEY_SNAKE_CASE.equals(name) || OUTPUT_ENCODING_KEY_CAMEL_CASE.equals(name)) { setOutputEncoding(value); } else if (URL_ESCAPING_CHARSET_KEY_SNAKE_CASE.equals(name) || URL_ESCAPING_CHARSET_KEY_CAMEL_CASE.equals(name)) {