Log.redirectTo(new CommonsLogger());
URI uri = new URI(StringUtils.stripToEmpty(jmxAdaptorUrl));
adaptor = new HttpAdaptor(uri.getPort(), uri.getHost());
// Set the XSLT Processor with any local overrides
XSLTProcessor processor;
try
{
processor = new XSLTProcessor();
}
catch (TransformerFactoryConfigurationError e)
{
System.setProperty("javax.xml.transform.TransformerFactory", XMLUtils.TRANSFORMER_FACTORY_JDK5);
processor = new XSLTProcessor();
}
if (StringUtils.isNotBlank(xslFilePath))
{
processor.setFile(xslFilePath.trim());
}
if (StringUtils.isNotBlank(pathInJar))
{
processor.setPathInJar(pathInJar.trim());
}
processor.setUseCache(cacheXsl);
adaptor.setProcessor(processor);
// Set endpoint authentication if required
if (login != null)