setResolveHosts(httpProtocol.isDnsLookupEnabled());
} else {
setResolveHosts(false);
}
AccessLog accessLogConfig = httpService.getAccessLog();
// access-log format
String format = null;
if (accessLogConfig != null) {
format = accessLogConfig.getFormat();
} else {
format = AccessLog.getDefaultFormat();
}
setPattern(format);
// rotation-enabled
if (accessLogConfig != null) {
setRotatable(accessLogConfig.isRotationEnabled());
} else {
setRotatable(Boolean.valueOf(
AccessLog.getDefaultRotationEnabled()).booleanValue());
}
// rotation-interval
int rotationInterval = 0;
if (accessLogConfig != null) {
String s = accessLogConfig.getRotationIntervalInMinutes();
rotationInterval = Integer.parseInt(s) * 60;
} else {
rotationInterval = fac.getDefaultRotationIntervalInMinutes() * 60;
}
setRotationInterval(rotationInterval);
// rotation-datestamp
String rotationDateStamp = null;
if (accessLogConfig != null) {
rotationDateStamp = accessLogConfig.getRotationSuffix();
} else {
rotationDateStamp = fac.getDefaultAccessLogDateStampPattern();
}
if ("%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s".equals(rotationDateStamp)) {
/*