aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-02-12 22:20:57 +0100
committersteckbrief <steckbrief@chefmail.de>2016-02-12 22:20:57 +0100
commit3b6d3ee1926a83ae028f42fb902058247335333c (patch)
tree7d3103a87b50bf6d0ff3b6f36fb39519e5bee422 /src/main/java/de
parent2028bb9b58a78577dfca037c39a887c7df53d802 (diff)
Simplification of DNS requests.
Originally introduced for FS#92, but now extended with retrieval for XEP-0368 (http://xmpp.org/extensions/xep-0368.html)
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/dto/SrvRecord.java12
1 files changed, 12 insertions, 0 deletions
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<SrvRecord> {
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<SrvRecord> {
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<SrvRecord> {
public int getPriority() {
return priority;
}
+
+ public boolean isUseTls() {
+ return useTls;
+ }
}