From 5a26c6b127ba45e46408dcc28d61c793ba32e15f Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Thu, 14 Apr 2022 21:37:06 +0200 Subject: [PATCH] create setConnection in ConnectionHandlerClass --- .../ch/zhaw/pm2/multichat/protocol/ConnectionHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocol/src/main/java/ch/zhaw/pm2/multichat/protocol/ConnectionHandler.java b/protocol/src/main/java/ch/zhaw/pm2/multichat/protocol/ConnectionHandler.java index 73008d9..a0ddd57 100644 --- a/protocol/src/main/java/ch/zhaw/pm2/multichat/protocol/ConnectionHandler.java +++ b/protocol/src/main/java/ch/zhaw/pm2/multichat/protocol/ConnectionHandler.java @@ -1,7 +1,7 @@ package ch.zhaw.pm2.multichat.protocol; public abstract class ConnectionHandler { - private final NetworkHandler.NetworkConnection connection; + private NetworkHandler.NetworkConnection connection; // Data types used for the Chat Protocol private static final String DATA_TYPE_CONNECT = "CONNECT"; @@ -44,4 +44,8 @@ public abstract class ConnectionHandler { public NetworkHandler.NetworkConnection getConnection() { return connection; } + + protected void setConnection() { + this.connection = connection; + } }