e7e5407e160bf94faab853ef9ac6039ceac325b0
[packetcable.git] / protocol_plugins.packetcable / src / main / java / org / pcmm / messages / IMessage.java
1 /**
2  @header@
3  */
4
5 package org.pcmm.messages;
6
7 /**
8  * This defines the messages exchanged between client and server.
9  * 
10  * 
11  * <pre>
12  * 1 = Request                 (REQ)
13  * 2 = Decision                (DEC)
14  * 3 = Report State            (RPT)
15  * 4 = Delete Request State    (DRQ)
16  * 5 = Synchronize State Req   (SSQ)
17  * 6 = Client-Open             (OPN)
18  * 7 = Client-Accept           (CAT)
19  * 8 = Client-Close            (CC)
20  * 9 = Keep-Alive              (KA)
21  * 10= Synchronize Complete    (SSC)
22  * </pre>
23  * 
24  */
25 public interface IMessage {
26
27         public static enum MessageProperties {
28                 CLIENT_TYPE("Client-Type"), PEP_ID("Pep-ID"), KA_TIMER("KA-Timer"), ACCEPT_TIMER(
29                                 "Accept-Timer"), ERR_MESSAGE("Error-Message"), ERR_MESSAGE_SUB_CODE(
30                                 "Error-Message-Code"), MM_MAJOR_VERSION_INFO(
31                                 "MM-Major-Version-info"), MM_MINOR_VERSION_INFO(
32                                 "MM-Minor-Version-info"), R_TYPE("R-Type"), M_TYPE("M-Type"), CLIENT_HANDLE(
33                                 "Client-Handle"), GATE_CONTROL("Gate-Control"), DECISION_CMD_CODE(
34                                 "Decision-Type"), DECISION_FLAG("Decision-Flag");
35
36                 private MessageProperties(String valueString) {
37                         this.value = valueString;
38                 }
39
40                 private String value;
41
42                 public String getValue() {
43                         return value;
44                 }
45         }
46
47 }