01: /*
02: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
03: * Reserved. Use is subject to license terms.
04: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License version
08: * 2 only, as published by the Free Software Foundation.
09: *
10: * This program is distributed in the hope that it will be useful, but
11: * WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * General Public License version 2 for more details (a copy is
14: * included at /legal/license.txt).
15: *
16: * You should have received a copy of the GNU General Public License
17: * version 2 along with this work; if not, write to the Free Software
18: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19: * 02110-1301 USA
20: *
21: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
22: * Clara, CA 95054 or visit www.sun.com if you need additional
23: * information or have any questions.
24: */
25: package gov.nist.siplite;
26:
27: import java.util.Hashtable;
28:
29: /**
30: * Configuration properties.
31: + * Configuration properties are set in StackConnector before initializing
32: + * a sipstack
33: + * Following are mandatory Configuration Properties :
34: + *
35: + * javax.sip.IP_ADDRESS
36: + * javax.sip.STACK_NAME
37: + *
38: + * Following are optional Configuration Properties :
39: + *
40: + * javax.sip.OUTBOUND_PROXY
41: + * javax.sip.EXTENSION_METHODS
42: + * gov.nist.javax.sip.LOG_FILE_NAME
43: + * gov.nist.javax.sip.TRACE_LEVEL
44: + * gov.nist.javax.sip.BAD_MESSAGE_LOG
45: + * gov.nist.javax.sip.SERVER_LOG
46: + * gov.nist.javax.sip.MAX_CONNECTIONS
47: + * gov.nist.javax.sip.THREAD_POOL_SIZE
48: + * gov.nist.javax.sip.MAX_SERVER_TRANSACTIONS
49: */
50: public class ConfigurationProperties extends Hashtable {
51: /** Default constructor. */
52: public ConfigurationProperties() {
53: super ();
54: }
55:
56: /**
57: * Gets a property value.
58: * @param name key for the property
59: * @return the value of the property
60: */
61: public String getProperty(String name) {
62: return (String) super .get(name);
63: }
64:
65: /**
66: * Sets a property value.
67: * @param name the key for theproperty
68: * @param value the value for the property
69: */
70: public void setProperty(String name, String value) {
71: super.put(name, value);
72: }
73:
74: }
|