aboutsummaryrefslogtreecommitdiff
path: root/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-09 14:21:09 +0300
committerGravatar Vitaly Takmazov2018-04-09 14:21:09 +0300
commitce3295d247c62a8ba1f0b31c4ddba0fed466bb3e (patch)
treea14cacedd3be271a41dbb565ed2458115408d4e7 /juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java
parent227f767dbb34f9980501771b2159ece213599bfb (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.java16
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;