3 import org.umu.cops.stack.COPSHandle;
5 import java.net.Socket;
8 * Abstract COPS Message sender
10 public abstract class COPSMsgSender {
13 * COPS client-type that identifies the policy client
15 protected final short _clientType;
18 * COPS client handle used to uniquely identify a particular
19 * PEP's request for a client-type
21 protected final COPSHandle _handle;
24 * Socket connected to PEP
26 protected final Socket _sock;
28 public COPSMsgSender(final short clientType, final COPSHandle handle, final Socket sock) {
29 if (handle == null) throw new IllegalArgumentException("Client handle must not be null");
30 if (sock == null) throw new IllegalArgumentException("Socket must not be null");
31 this._clientType = clientType;
32 this._handle = handle;
37 * Gets the client handle
38 * @return Client's <tt>COPSHandle</tt>
40 public COPSHandle getClientHandle() {
45 * Gets the client-type
46 * @return Client-type value
48 public short getClientType() {