create setConnection in ConnectionHandlerClass

This commit is contained in:
Andrin Fassbind 2022-04-14 21:37:06 +02:00
parent 5e6e9d5817
commit 5a26c6b127
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
package ch.zhaw.pm2.multichat.protocol;
public abstract class ConnectionHandler {
private final NetworkHandler.NetworkConnection<String> connection;
private NetworkHandler.NetworkConnection<String> 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<String> getConnection() {
return connection;
}
protected void setConnection() {
this.connection = connection;
}
}