aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/utils/XmppUri.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/XmppUri.java b/src/main/java/de/pixart/messenger/utils/XmppUri.java
index daa14a3c3..0600986c7 100644
--- a/src/main/java/de/pixart/messenger/utils/XmppUri.java
+++ b/src/main/java/de/pixart/messenger/utils/XmppUri.java
@@ -13,6 +13,7 @@ import de.pixart.messenger.xmpp.jid.Jid;
public class XmppUri {
+ protected Uri uri;
protected String jid;
protected String fingerprint;
protected List<Fingerprint> fingerprints = new ArrayList<>();
@@ -56,6 +57,7 @@ public class XmppUri {
}
protected void parse(Uri uri) {
+ this.uri = uri;
String scheme = uri.getScheme();
String host = uri.getHost();
List<String> segments = uri.getPathSegments();
@@ -112,6 +114,13 @@ public class XmppUri {
}
}
+ public String toString() {
+ if (uri != null) {
+ return uri.toString();
+ }
+ return "";
+ }
+
protected List<Fingerprint> parseFingerprints(String query) {
return parseFingerprints(query, ';');
}