Cleanup of state managers' interfaces (constructor and init).
[packetcable.git] / packetcable-driver / src / main / java / org / umu / cops / prpdp / COPSPdpReqStateMan.java
index 49a24fce8e86c960bf1aafe3d8cb6df3b886fa9f..72fdccc491e8245b31e867c12750da1993066d26 100644 (file)
@@ -35,17 +35,11 @@ public class COPSPdpReqStateMan extends COPSStateMan {
      * @param clientType    Client-type
      * @param clientHandle  Client handle
      */
-    public COPSPdpReqStateMan(final short clientType, final COPSHandle clientHandle, final COPSPdpDataProcess process) {
-        super(clientType, clientHandle);
+    public COPSPdpReqStateMan(final short clientType, final COPSHandle clientHandle, final COPSPdpDataProcess process,
+                              final Socket socket) {
+        super(clientType, clientHandle, socket);
         this._process = process;
-    }
-
-    @Override
-    protected void initRequestState(final Socket sock) throws COPSException {
-        // Inits an object for sending COPS messages to the PEP
-        _sender = new COPSPdpMsgSender(_clientType, _handle, sock);
-
-        // Initial state
+        _sender = new COPSPdpMsgSender(_clientType, _handle, _socket);
         _status = Status.ST_INIT;
     }