/*
* Update each virtual server with the sso-enabled and
* access logging related properties of the updated http-service
*/
ElementProperty ssoEnabled = null;
ElementProperty accessLoggingEnabled = null;
ElementProperty accessLogWriteInterval = null;
ElementProperty accessLogBufferSize = null;
ElementProperty[] props = httpService.getElementProperty();
if (props != null) {
for (int i=0; i<props.length; i++) {
if (Constants.SSO_ENABLED.equals(props[i].getName())) {
ssoEnabled = props[i];
globalSSOEnabled = ConfigBean.toBoolean(
props[i].getValue());
} else if (Constants.ACCESS_LOGGING_ENABLED.equals(
props[i].getName())) {
accessLoggingEnabled = props[i];
globalAccessLoggingEnabled = ConfigBean.toBoolean(
props[i].getValue());
} else if (Constants.ACCESS_LOG_WRITE_INTERVAL_PROPERTY.equals(
props[i].getName())) {
accessLogWriteInterval = props[i];
globalAccessLogWriteInterval = props[i].getValue();
} else if (Constants.ACCESS_LOG_BUFFER_SIZE_PROPERTY.equals(
props[i].getName())) {
accessLogBufferSize = props[i];
globalAccessLogBufferSize = props[i].getValue();
}
}
}
com.sun.enterprise.config.serverbeans.VirtualServer[] virtualServers =
httpService.getVirtualServer();
if (virtualServers != null
&& (ssoEnabled != null || accessLoggingEnabled != null
|| accessLogWriteInterval != null
|| accessLogBufferSize != null)) {
for (int i=0; i<virtualServers.length; i++) {
if (ssoEnabled != null) {
updateHostProperties(virtualServers[i],
ssoEnabled.getName(),
ssoEnabled.getValue(),
httpService,
null);
}
if (accessLoggingEnabled != null) {
updateHostProperties(virtualServers[i],
accessLoggingEnabled.getName(),
accessLoggingEnabled.getValue(),
httpService,
null);
}
if (accessLogWriteInterval != null) {
updateHostProperties(virtualServers[i],
accessLogWriteInterval.getName(),
accessLogWriteInterval.getValue(),
httpService,
null);
}
if (accessLogBufferSize != null) {
updateHostProperties(virtualServers[i],
accessLogBufferSize.getName(),
accessLogBufferSize.getValue(),
httpService,
null);
}
}
}