Examples of outputString()


Examples of org.jdom.output.XMLOutputter.outputString()

      }
    }
    catch (Exception e) {
      logger.fatal("Error building reply document, returning Reply Document passed in");
      logger.fatal(e.getMessage(), e);
      return xmlOut.outputString(replyDoc);
    }
    return xmlOut.outputString(localReplyDoc);
  }

  protected ArrayList logErrors(String errNumber, String errMessage, Throwable e, Document inDoc) {
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

    catch (Exception e) {
      logger.fatal("Error building reply document, returning Reply Document passed in");
      logger.fatal(e.getMessage(), e);
      return xmlOut.outputString(replyDoc);
    }
    return xmlOut.outputString(localReplyDoc);
  }

  protected ArrayList logErrors(String errNumber, String errMessage, Throwable e, Document inDoc) {
    logger.fatal(errMessage, e);
    logger.fatal("Message sent in is: \n" + getMessageBody(inDoc));
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

      EnterpriseLayoutManager elm = getOutputLayoutManager("xml");
      if (elm != null) {
        Object obj = elm.buildOutputFromObject(this);
        if (obj instanceof Element) {
          XMLOutputter fmt = new XMLOutputter(Format.getPrettyFormat());
          logger.info(fmt.outputString((Element)obj));
        }
      }
    }
    catch (Exception exc) {
      logger.fatal("dumpData: Exception caught: " + exc.getMessage());
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

      xeo.setInputLayoutManager(inElm);

      logger.debug("re-building object from input...");
      xeo.buildObjectFromInput(eOutput);
      XMLOutputter xmlOut = new XMLOutputter();
      String objAsXmlString = xmlOut.outputString((Element)xeo.buildOutputFromObject());
      logger.debug("[toXmlString] " + className + " as an XML String: \n" + objAsXmlString);

      // To test to make sure it doesn't have any goofy characters in it...
      // If it does, an exception will be thrown here.
      XmlDocumentReader xmlReader = new XmlDocumentReader();
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

  **/
  public boolean publishMessage(ActionableEnterpriseObject theObject, Document doc)
  throws TransportException {
    TextMessage outMessage = createTextMessage();
    XMLOutputter xmlOut = new XMLOutputter();
    String messageBody = xmlOut.outputString(doc);
    String xmlMsgId = theObject.getMessageId().toString();
    logger.debug("PubSubProducer: ProducerId is: " + getProducerId(null).getId());
    logger.debug("PubSubProducer: MessageId is: " + xmlMsgId);

    try {
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

        getBaseline().buildObjectFromInput(oldBaselineElement);
      }
      catch (Exception e) {
        logger.fatal("Error building baseline object from element for object (baseline/clone) " +
          getBaseline().getClass().getName() + " content of element: " +
          xmlOut.outputString(oldBaselineElement));
        String errMessage = "Error building baseline object from element for object " +
          getClass().getName() + "  Exception: " + e.getMessage();
        throw new EnterpriseObjectUpdateException(errMessage, e);
      }
    }
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

  //============================================================================
  private void outputXMLDocument(Document doc, String message) {
    try {
      XMLOutputter fmt = new XMLOutputter(Format.getPrettyFormat());
      logger.fatal(message);
      logger.fatal("\n" + fmt.outputString(doc));
    }
    catch (Exception exc) {
      logger.fatal("Error converting XML Document to String.");
      logger.fatal(exc.getMessage(), exc);
    }
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

  //============================================================================
  private void outputXMLElement(Element element, String message) {
    try {
      XMLOutputter fmt = new XMLOutputter(Format.getPrettyFormat());
      logger.fatal(message);
      logger.fatal("\n" + fmt.outputString(element));
    }
    catch (Exception exc) {
      logger.fatal("Error converting XML Element to String.");
      logger.fatal(exc.getMessage(), exc);
    }
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

  this will be a 'String' object built from the message body of the JMS message passed in.
  *  @return  String
  */
  public final String getMessageBody(Document inDoc) {
    XMLOutputter xmlOut = new XMLOutputter();
    return xmlOut.outputString(inDoc);
  }

/**
  *  Set AppConfig associated to this command.  It is called in the
  *  constructor of Command.
View Full Code Here

Examples of org.jdom.output.XMLOutputter.outputString()

            throw new JMSException(ele1.getMessage());
          }
          controlArea.addContent(eResult);

          XMLOutputter xOut = new XMLOutputter();
          return xOut.outputString(errorDoc);
        }
        else {
          return null;
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.