LOGGER.finer("In method storeServices");
cw.writeln("<?config.xml version=\"1.0\" encoding=\"UTF-8\"?>");
cw.comment("Service level configuration");
cw.openTag("serverConfiguration");
GeoServerDTO g = geoServer;
if (g != null) {
cw.openTag("global");
if (g.getLoggingLevel() != null) {
cw.comment(
"Defines the logging level. Common options are SEVERE,\n"
+ "WARNING, INFO, CONFIG, FINER, FINEST, in order of\n"
+ "Increasing statements logged.");
cw.textTag("loggingLevel", g.getLoggingLevel().getName());
}
cw.valueTag("loggingToFile",g.getLoggingToFile()+"");
if (g.getLogLocation() != null) {
cw.textTag("logLocation", g.getLogLocation());
}
/*if(g.getBaseUrl()!=null && g.getBaseUrl()!=""){
cw.comment("The base URL where this servlet will run. If running locally\n"+
"then http://localhost:8080 (or whatever port you're running on)\n"+
"should work. If you are serving to the world then this must be\n"+
"the location where the geoserver servlets appear");
cw.textTag("URL",g.getBaseUrl());
}*/
cw.comment("Sets the max number of Features returned by GetFeature");
cw.valueTag("maxFeatures", "" + g.getMaxFeatures());
cw.comment("Whether newlines and indents should be returned in \n"
+ "XML responses. Default is false");
cw.valueTag("verbose", "" + g.isVerbose());
cw.comment(
"Whether the Service Exceptions returned to clients should contain\n"
+ "full java stack traces (useful for debugging). ");
cw.valueTag("verboseExceptions", "" + g.isVerboseExceptions());
cw.comment(
"Sets the max number of decimal places past the zero returned in\n"
+ "a GetFeature response. Default is 4");
cw.valueTag("numDecimals", "" + g.getNumDecimals());
if (g.getCharSet() != null) {
cw.comment(
"Sets the global character set. This could use some more testing\n"
+ "from international users, but what it does is sets the encoding\n"
+ "globally for all postgis database connections (the charset tag\n"
+ "in FeatureTypeConfig), as well as specifying the encoding in the return\n"
+ "config.xml header and mime type. The default is UTF-8. Also be warned\n"
+ "that GeoServer does not check if the CharSet is valid before\n"
+ "attempting to use it, so it will fail miserably if a bad charset\n"
+ "is used.");
cw.valueTag("charSet", g.getCharSet().toString());
}
if ((g.getSchemaBaseUrl() != null) && (g.getSchemaBaseUrl() != "")) {
cw.comment(
"Define a base url for the location of the wfs schemas.\n"
+ "By default GeoServer loads and references its own at\n"
+ "<URL>/data/capabilities. Uncomment to enable. The\n"
+ "standalone Tomcat server needs SchemaBaseUrl defined\n"
+ "for validation.");
cw.textTag("SchemaBaseUrl", g.getSchemaBaseUrl());
}
if ((g.getAdminUserName() != null) && (g.getAdminUserName() != "")) {
cw.comment(
"Defines the user name of the administrator for log in\n"
+ "to the web based administration tool.");
cw.textTag("adminUserName", g.getAdminUserName());
}
if ((g.getAdminPassword() != null) && (g.getAdminPassword() != "")) {
cw.comment(
"Defines the password of the administrator for log in\n"
+ "to the web based administration tool.");
cw.textTag("adminPassword", g.getAdminPassword());
}
if (g.getContact() != null) {
storeContact(g.getContact(), cw);
}
cw.closeTag("global");
}