View Javadoc

1   /*
2    * Copyright  1999-2004 The Apache Software Foundation.
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
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"; //Property name to store the CM in the ConfigCtx.
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"; //AxisService property
36  	String SUBSCRIBER_STORE_KEY = "SubscriberStoreKey"; //to mention the key in the services.xml
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  }