diff options
author | Vitaly Takmazov | 2018-04-09 14:21:09 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-09 14:21:09 +0300 |
commit | ce3295d247c62a8ba1f0b31c4ddba0fed466bb3e (patch) | |
tree | a14cacedd3be271a41dbb565ed2458115408d4e7 /juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java | |
parent | 227f767dbb34f9980501771b2159ece213599bfb (diff) |
server: xmpp fixes
Diffstat (limited to 'juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java')
-rw-r--r-- | juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java b/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java index 31d338df..c14fdd18 100644 --- a/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java +++ b/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java @@ -196,22 +196,6 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { return inConnections.stream().filter(c -> c.streamID != null && c.streamID.equals(streamID)).findFirst(); } - public void sendOut(Stanza s) { - try { - StringWriter stanzaWriter = new StringWriter(); - XMLStreamWriter xmppStreamWriter = XmppUtils.createXmppStreamWriter( - session.getConfiguration().getXmlOutputFactory().createXMLStreamWriter(stanzaWriter)); - session.createMarshaller().marshal(s, xmppStreamWriter); - xmppStreamWriter.flush(); - xmppStreamWriter.close(); - String xml = stanzaWriter.toString(); - logger.debug("s2s (out): {}", xml); - sendOut(Jid.of(s.getTo().getDomain()), xml); - } catch (XMLStreamException | JAXBException e1) { - logger.info("jaxb exception", e1); - } - } - public void sendOut(Jid hostname, String xml) { boolean haveAnyConn = false; |