Package mx4j.tools.adaptor.http

Examples of mx4j.tools.adaptor.http.XSLTProcessor


   public RelationServiceAdaptor()
   {
      m_server = MBeanServerFactory.createMBeanServer("MyAdaptorTests");
      m_adaptor = new mx4j.tools.adaptor.http.HttpAdaptor();
      m_processor = new DefaultProcessor();
      m_xsltProcessor = new XSLTProcessor();
   }
View Full Code Here


        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)
View Full Code Here

      Log.redirectTo(new MX4JLoggerMonolog(logger));
      MBeanServer server = adminAtt.getRawMBeanServer();
      adapter = new HttpAdaptor();
      server.registerMBean(adapter, getObjectName());

      XSLTProcessor processor = new XSLTProcessor();
      processor.setPathInJar("org/objectweb/speedo/jmx/xsl");
      processor.setUseCache(false);
      ObjectName processorName = new ObjectName("Server:name=XSLTProcessor");
      server.registerMBean(processor, processorName);

      server.setAttribute(getObjectName(),
              new Attribute("ProcessorName", processorName));
View Full Code Here

        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)
View Full Code Here

TOP

Related Classes of mx4j.tools.adaptor.http.XSLTProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.