diff options
author | 2018-12-31 00:02:02 +0300 | |
---|---|---|
committer | 2018-12-31 01:03:32 +0300 | |
commit | 3af1fa43a25ba844b999d0be6c1139e6a98046fb (patch) | |
tree | 35046afefe5ee1df7d2d17607660b4b0d9f2538e /src/main/java/com/juick/server/xmpp/router/Handshake.java | |
parent | a201bab42facd56290195703f6847e1a29033fb4 (diff) |
Use external XMPP server
Diffstat (limited to 'src/main/java/com/juick/server/xmpp/router/Handshake.java')
-rw-r--r-- | src/main/java/com/juick/server/xmpp/router/Handshake.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/main/java/com/juick/server/xmpp/router/Handshake.java b/src/main/java/com/juick/server/xmpp/router/Handshake.java deleted file mode 100644 index 0bc501dd..00000000 --- a/src/main/java/com/juick/server/xmpp/router/Handshake.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.juick.server.xmpp.router; - -import org.xmlpull.v1.XmlPullParser; -import org.xmlpull.v1.XmlPullParserException; - -import java.io.IOException; - -/** - * Created by vitalyster on 30.01.2017. - */ -public class Handshake { - private String value; - - public static Handshake parse(XmlPullParser parser) throws IOException, XmlPullParserException { - parser.next(); - Handshake handshake = new Handshake(); - handshake.setValue(XmlUtils.getTagText(parser)); - return handshake; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - @Override - public String toString() { - StringBuilder str = new StringBuilder("<handshake"); - if (getValue() != null) { - str.append(">").append(getValue()).append("</handshake>"); - } else { - str.append("/>"); - } - return str.toString(); - } -} |