1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.savan;
19
20 /***
21 * Contains the constants used by Savan
22 *
23 *
24 */
25 public interface SavanConstants {
26
27 String CONFIGURATION_MANAGER = "SavanConfigurationManager";
28
29 String VALUE_TRUE = "true";
30 String VALUE_FALSE = "false";
31
32 String MESSAGE_TYPE = "SavanMessageType";
33 String PUBLICATION_MESSAGE = "SavanPublicationMessage";
34
35 String SUBSCRIBER_STORE = "SubscriberStore";
36 String SUBSCRIBER_STORE_KEY = "SubscriberStoreKey";
37 String PROTOCOL = "Protocol";
38
39 String CONFIG_FILE = "savan-config.xml";
40 String UTIL_FACTORY = "UtilFactory";
41
42 String DEFAULT_SUBSCRIBER_STORE_KEY = "default";
43
44 interface MessageTypes {
45 int UNKNOWN = -1;
46 int SUBSCRIPTION_MESSAGE = 1;
47 int SUBSCRIPTION_RESPONSE_MESSAGE = 2;
48 int UNSUBSCRIPTION_MESSAGE = 3;
49 int UNSUBSCRIPTION_RESPONSE_MESSAGE = 4;
50 int RENEW_MESSAGE = 5;
51 int RENEW_RESPONSE_MESSAGE = 6;
52 int GET_STATUS_MESSAGE = 7;
53 int GET_STATUS_RESPONSE_MESSAGE = 8;
54 }
55
56 interface Properties {
57 String SUBSCRIBER_STORE = "SubscriberStore";
58 }
59
60
61
62 }