Examples of toXML()


Examples of org.xmlBlaster.util.queue.I_Queue.toXml()

         sb.append(msgUnitCache.toXml(extraOffset+Constants.INDENT));
      }

      I_Queue historyQueue = this.historyQueue;
      if (historyQueue != null) {
         sb.append(historyQueue.toXml(extraOffset+Constants.INDENT));
      }

      try {
         MsgUnitWrapper[] msgUnitWrapperArr = getMsgUnitWrapperArr(-1, false);
         for (int ii=0; ii<msgUnitWrapperArr.length; ii++) {
View Full Code Here

Examples of org.xmlBlaster.util.queuemsg.MsgQueueEntry.toXml()

         else { // TODO: Get a proper dump, here we only dump the queueEntry information but not the message itself
            StringBuffer sb = new StringBuffer(4096);
            sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
            sb.append("\n<xmlBlaster>");
            sb.append("\n <!-- Content dump is not yet implemented -->");
            sb.append(entry.toXml());
            sb.append("\n</xmlBlaster>");
            xml = sb.toString();
         }
         String fullName = XmlScriptInterpreter.dumpToFile(path, fn, xml);
         tmpList.add(fullName);
View Full Code Here

Examples of org.xmlcml.cml.element.CMLCml.toXML()

        for(int i=0;i<cmlElems.size();i++) {
          Element cml = cmlElems.get(i);
          String id = cml.getAttributeValue("id");
          Element cmlUrlEnc = new Element("cmlUrlEnc");
          cmlUrlEnc.addAttribute(new Attribute("idRef", id));
          cmlUrlEnc.appendChild(StringTools.urlEncodeLongString(cml.toXML()));
          state.cmlPile.appendChild(cmlUrlEnc);
        }
      }
     
    }
View Full Code Here

Examples of org.xmpp.packet.IQ.toXML()

            reply.setError(PacketError.Condition.service_unavailable);
        }

        try {
            if (Log.isDebugEnabled()) {
                Log.debug("MediaProxyService: RETURNED:" + reply.toXML());
            }
            router.route(reply);
        }
        catch (Exception e) {
            Log.error(e.getMessage(), e);
View Full Code Here

Examples of org.xmpp.packet.Message.toXML()

        // no matches should be found
        assertFalse(matched);

        // message should not have changed
        assertEquals(new Message().toXML(), message.toXML());
    }

    public void testFilterMessageSubject() {
        // filter on the word fox
        filter.setPatterns("fox");
View Full Code Here

Examples of org.xmpp.packet.Presence.toXML()

                Presence presence = (Presence)packet;
                if (Presence.Type.error == presence.getType()) {
                    // A configuration must be wrong (eg. workgroup is not allowed to create rooms).
                    // Log the error presence
                    String warnMessage = "Possible server misconfiguration. Received error " +
                        "presence:" + presence.toXML();
                    Log.warn(warnMessage);
                    return;
                }
                // Get the JID of the presence's user
                Element mucUser = presence.getChildElement("x", "http://jabber.org/protocol/muc#user");
View Full Code Here

Examples of org.xmpp.packet.StreamError.toXML()

                            Thread.sleep(10);
                            // Close the user's connection
                            final StreamError error = new StreamError(StreamError.Condition.not_authorized);
                            for (ClientSession sess : sessionManager.getSessions(user.getUsername()) )
                            {
                                sess.deliverRawText(error.toXML());
                                sess.close();
                            }
                            // The reply has been sent so clean up the variable
                            reply = null;
                        }
View Full Code Here

Examples of quickfix.fix44.MarketDataIncrementalRefresh.toXML()

    String messageData = getMessageData("X.txt");

    MarketDataIncrementalRefresh message = new MarketDataIncrementalRefresh();
    message.fromString(messageData, dataDictionary, true);

    log.debug(message.toXML(dataDictionary));

    Ticker ticker = BTCChinaFIXAdapters.adaptUpdate(oldTicker, message);

    assertEquals(CurrencyPair.BTC_CNY, ticker.getCurrencyPair());
    assertEquals(1413482716000L, ticker.getTimestamp().getTime());
View Full Code Here

Examples of quickfix.fix44.MarketDataSnapshotFullRefresh.toXML()

    String messageData = getMessageData("W.txt");

    MarketDataSnapshotFullRefresh message = new MarketDataSnapshotFullRefresh();
    message.fromString(messageData, dataDictionary, true);

    log.debug(message.toXML(dataDictionary));

    Ticker ticker = BTCChinaFIXAdapters.adaptTicker(message);
    return ticker;
  }
View Full Code Here

Examples of reportgen.math.MathExpression.toXML()

               
            } else {
                throw new RuntimeException("Сохранение значения '" + value.toString() +
                        "' как результата подзапроса не поддерживается");
            }
            root.addContent(val.toXML());
        }
        return root;
    }

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.