From 3b6d3ee1926a83ae028f42fb902058247335333c Mon Sep 17 00:00:00 2001 From: steckbrief Date: Fri, 12 Feb 2016 22:20:57 +0100 Subject: Simplification of DNS requests. Originally introduced for FS#92, but now extended with retrieval for XEP-0368 (http://xmpp.org/extensions/xep-0368.html) --- .../java/de/thedevstack/conversationsplus/dto/SrvRecord.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/main/java/de/thedevstack/conversationsplus') diff --git a/src/main/java/de/thedevstack/conversationsplus/dto/SrvRecord.java b/src/main/java/de/thedevstack/conversationsplus/dto/SrvRecord.java index 3bc79c4f..1e0eebc7 100644 --- a/src/main/java/de/thedevstack/conversationsplus/dto/SrvRecord.java +++ b/src/main/java/de/thedevstack/conversationsplus/dto/SrvRecord.java @@ -8,6 +8,7 @@ public class SrvRecord implements Comparable { private int priority; private String name; private int port; + private boolean useTls = false; public SrvRecord(int priority, String name, int port) { this.priority = priority; @@ -15,6 +16,13 @@ public class SrvRecord implements Comparable { this.port = port; } + public SrvRecord(int priority, String name, int port, boolean useTls) { + this.priority = priority; + this.name = name; + this.port = port; + this.useTls = useTls; + } + /** * Compares this record to the specified record to determine their relative * order. @@ -50,4 +58,8 @@ public class SrvRecord implements Comparable { public int getPriority() { return priority; } + + public boolean isUseTls() { + return useTls; + } } -- cgit v1.2.3