--- /dev/null
+/*\r
+ * Copyright (c) 2004 University of Murcia. All rights reserved.\r
+ * --------------------------------------------------------------\r
+ * For more information, please see <http://www.umu.euro6ix.org/>.\r
+ */\r
+package org.umu.cops.common;\r
+\r
+/**\r
+ * Class containing keywords supported by the client types.\r
+ *\r
+ * @version COPS_def.java, v 2.00 2004\r
+ *\r
+ */\r
+public class COPS_def {\r
+\r
+ /** COPS Client Type for RSVP\r
+ */\r
+ public final static short C_RSVP = 1;\r
+\r
+ /** COPS Client Type for SIP\r
+ */\r
+ public final static short C_SIP = 100;\r
+\r
+ /** COPS Client Type for IPSec\r
+ */\r
+ public final static short C_IPSEC = (short) 0x8001;\r
+\r
+ /** Maximum COPS Client Type\r
+ */\r
+ public final static short C_MAX = (short) 0xFFFF;\r
+\r
+ /** Get a representative string for an COPS Client Type.\r
+ *\r
+ * @param cType COPS Client Type\r
+ * @return A representative <tt>String</tt>\r
+ *\r
+ */\r
+ public String strClientType(short cType) {\r
+ switch (cType) {\r
+ case C_RSVP:\r
+ return ("C_RSVP");\r
+ case C_SIP:\r
+ return ("C_SIP");\r
+ case C_IPSEC:\r
+ return ("C_IPSEC");\r
+ default:\r
+ return "Unknown";\r
+ }\r
+ }\r
+}\r