Package org.salamandra.web.core.transformer.node.tx

Examples of org.salamandra.web.core.transformer.node.tx.TrXO


          protocol = Protocol.XSL;
        } else if (protocoXx) {
          protocol = Protocol.XSLS;
        }
       
        TrXO trxo = new TrXFactory().createTrXO(protocol, getParams(), this);
        trxo.setListableBeanFactory(getListableBeanFactory());

        trxo.parse(sourceDoc, result);
      }
      } catch (SourceTransformerException e) {
      LOG.error("Non posso ottenere una istanza di DOM Document.", e);
    } catch (SAXException e) {
      LOG.error("Non posso ottenere un TransformerHandler", e);   
View Full Code Here


  public void execute(HttpServletRequest request, HttpServletResponse response)
      throws TransformerException {

    response.setContentType("text/xml");

    TrXO trxo = new TrXFactory().createTrXO(Protocol.XML, getParams(), this);
    trxo.setListableBeanFactory(getListableBeanFactory());

    Source source;
    try {
      source = getSourceTransform(request);

      Result result = new StreamResult(response.getWriter());

      trxo.parse(source, result);
    } catch (SourceTransformerException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    } catch (SAXException e) {
View Full Code Here

TOP

Related Classes of org.salamandra.web.core.transformer.node.tx.TrXO

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.