@Override
protected void wrapInternal(Map properties, SimpleHash model, GeoServerInfo info) {
SettingsInfo settingsInfo = info.getSettings();
ContactInfo contactInfo = settingsInfo.getContact();
JAIInfo jaiInfo = info.getJAI();
CoverageAccessInfo covInfo = info.getCoverageAccess();
properties.put("contactPerson",
contactInfo.getContactPerson() != null ? contactInfo.getContactPerson()
: "");
properties.put(
"contactOrganization",
contactInfo.getContactOrganization() != null ? contactInfo
.getContactOrganization() : "");
properties.put(
"contactPosition",
contactInfo.getContactPosition() != null ? contactInfo
.getContactPosition() : "");
properties.put("addressType",
contactInfo.getAddressType() != null ? contactInfo.getAddressType()
: "");
properties.put("address",
contactInfo.getAddress() != null ? contactInfo.getAddress() : "");
properties.put("addressCity",
contactInfo.getAddressCity() != null ? contactInfo.getAddressCity()
: "");
properties.put("addressState",
contactInfo.getAddressState() != null ? contactInfo.getAddressState()
: "");
properties.put(
"addressPostalCode",
contactInfo.getAddressPostalCode() != null ? contactInfo
.getAddressPostalCode() : "");
properties.put(
"addressCountry",
contactInfo.getAddressCountry() != null ? contactInfo
.getAddressCountry() : "");
properties.put("contactVoice",
contactInfo.getContactVoice() != null ? contactInfo.getContactVoice()
: "");
properties.put(
"contactFacsimile",
contactInfo.getContactFacsimile() != null ? contactInfo
.getContactFacsimile() : "");
properties.put("contactEmail",
contactInfo.getContactEmail() != null ? contactInfo.getContactEmail()
: "");
properties.put("verbose", settingsInfo.isVerbose() ? "true" : "false");
properties.put("verboseExceptions", settingsInfo.isVerboseExceptions() ? "true"
: "false");
properties.put("numDecimals", String.valueOf(settingsInfo.getNumDecimals()));
properties.put("charset", settingsInfo.getCharset());
properties.put(
"onlineResource",
settingsInfo.getOnlineResource() != null ? settingsInfo
.getOnlineResource() : "");
properties.put("proxyBaseUrl",
settingsInfo.getProxyBaseUrl() != null ? settingsInfo.getProxyBaseUrl()
: "");
properties.put("allowInterpolation", jaiInfo.getAllowInterpolation() ? "true"
: "false");
properties.put("recycling", jaiInfo.isRecycling() ? "true" : "false");
properties.put("tilePriority", String.valueOf(jaiInfo.getTilePriority()));
properties.put("tileThreads", String.valueOf(jaiInfo.getTileThreads()));
properties.put("memoryCapacity", jaiInfo.getMemoryCapacity());
properties.put("memoryThreshold", jaiInfo.getMemoryThreshold());
properties.put("imageIOCache", jaiInfo.isImageIOCache() ? "true" : "false");
properties.put("pngEncoderType", jaiInfo.getPngEncoderType().toString());
properties.put("jpegAcceleration", jaiInfo.isJpegAcceleration() ? "true"
: "false");
properties.put("allowNativeMosaic", jaiInfo.isAllowNativeMosaic() ? "true"
: "false");
properties.put("maxPoolSize", String.valueOf(covInfo.getMaxPoolSize()));
properties.put("corePoolSize", String.valueOf(covInfo.getCorePoolSize()));
properties.put("keepAliveTime", String.valueOf(covInfo.getKeepAliveTime()));
properties.put("queueType", covInfo.getQueueType());
properties.put("imageIOCacheThreshold",
String.valueOf(covInfo.getImageIOCacheThreshold()));
}
});
return cfg;
}