aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/dto
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/dto')
-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;
+ }
}