create setConnection in ConnectionHandlerClass
This commit is contained in:
1 parent
5e6e9d5817
commit
5a26c6b127
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user