Class< ? > clazz = Class.forName(messageLogFactoryClasspath);
Constructor< ? > c = clazz.getConstructor(new Class[0]);
this.logRecordFactory = (LogRecordFactory) c.newInstance(new Object[0]);
} catch (Exception ex) {
getLogWriter().logError("Bad configuration value for LOG_FACTORY -- using default logger");
this.logRecordFactory = new DefaultMessageLogFactory();
}
} else {
this.logRecordFactory = new DefaultMessageLogFactory();
}
boolean computeContentLength = configurationProperties.getProperty(
"gov.nist.javax.sip.COMPUTE_CONTENT_LENGTH_FROM_MESSAGE_BODY", "false")
.equalsIgnoreCase("true");