create setConnection in ConnectionHandlerClass
This commit is contained in:
parent
5e6e9d5817
commit
5a26c6b127
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue