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; + } }