Basic fixes to make build work :)
[packetcable.git] / src / main / java / org / umu / cops / common / COPS_def.java
1 /*\r
2  * Copyright (c) 2004 University of Murcia.  All rights reserved.\r
3  * --------------------------------------------------------------\r
4  * For more information, please see <http://www.umu.euro6ix.org/>.\r
5  */\r
6 package org.umu.cops.common;\r
7 \r
8 /**\r
9  * Class containing keywords supported by the client types.\r
10  *\r
11  * @version COPS_def.java, v 2.00 2004\r
12  *\r
13  */\r
14 public class COPS_def {\r
15 \r
16     /** COPS Client Type for RSVP\r
17      */\r
18     public final static short C_RSVP = 1;\r
19 \r
20     /** COPS Client Type for SIP\r
21      */\r
22     public final static short C_SIP = 100;\r
23 \r
24     /** COPS Client Type for IPSec\r
25      */\r
26     public final static short C_IPSEC = (short) 0x8001;\r
27 \r
28     /** Maximum COPS Client Type\r
29      */\r
30     public final static short C_MAX = (short) 0xFFFF;\r
31 \r
32     /** Get a representative string for an COPS Client Type.\r
33         *\r
34         * @param     cType    COPS Client Type\r
35      * @return A representative <tt>String</tt>\r
36      *\r
37        */\r
38     public String strClientType(short cType) {\r
39         switch (cType) {\r
40         case C_RSVP:\r
41             return ("C_RSVP");\r
42         case C_SIP:\r
43             return ("C_SIP");\r
44         case C_IPSEC:\r
45             return ("C_IPSEC");\r
46         default:\r
47             return "Unknown";\r
48         }\r
49     }\r
50 }\r