create setConnection in ConnectionHandlerClass
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package ch.zhaw.pm2.multichat.protocol;
|
package ch.zhaw.pm2.multichat.protocol;
|
||||||
|
|
||||||
public abstract class ConnectionHandler {
|
public abstract class ConnectionHandler {
|
||||||
private final NetworkHandler.NetworkConnection<String> connection;
|
private NetworkHandler.NetworkConnection<String> connection;
|
||||||
|
|
||||||
// Data types used for the Chat Protocol
|
// Data types used for the Chat Protocol
|
||||||
private static final String DATA_TYPE_CONNECT = "CONNECT";
|
private static final String DATA_TYPE_CONNECT = "CONNECT";
|
||||||
@@ -44,4 +44,8 @@ public abstract class ConnectionHandler {
|
|||||||
public NetworkHandler.NetworkConnection<String> getConnection() {
|
public NetworkHandler.NetworkConnection<String> getConnection() {
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void setConnection() {
|
||||||
|
this.connection = connection;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user