KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > DefaultConfig


1 import java.util.Properties JavaDoc;
2
3 /** Default configuration properties.*/
4 public final class DefaultConfig extends Properties JavaDoc{
5     
6     /** Constructs a default property object.*/
7     public DefaultConfig(){
8         super();
9         setProperty("accountLocation","c:\\program");
10         /* userhome for users home directory,
11         application for the application's directory (single machine shared/no login envrionment eg win98)
12         or a network path.
13         If a network path USER (if present) is replaced by the current user's username.
14         EG U:\\fileshare\USER\apps\
15         we would use U:\\fileshare\fred\apps\ when fred is logged on to machine. */

16         setProperty("timeout","5000"); // socket read timeout in millisecods
17
setProperty("keepalive","5000"); // How often to send "keep alive" sinals to a remote host in millisecods
18

19         //jabber settings
20
setProperty("jabberLockToUserName","false"); //If the jabber username must be the same as the current machine username
21
setProperty("jabberDefaultServer","jabberhost.net"); //default jabber server
22
setProperty("jabberDefaultChatServer","conference"); // default groupchat server name prefix without a .
23
setProperty("jabberDefaultResource","whisper"); // default resource. eg, home, work, laptop, etc.
24
setProperty("jabberLockToDefaultResource","false"); //if the resource cannot be editted by user
25
setProperty("jabberLockToDefaultServer","false"); // If true, only the default server can be used
26
setProperty("jabberLockToDefaultChatServer","false"); // If true, only the default chat server can be used
27
setProperty("jabberAllowNewAccounts","true");// If false, new accounts can not be created,
28
// in which case account must already exist on server.
29
setProperty("jabberAllowNonSSL","true"); // If non-SSL connections can be made
30
}
31 }
Popular Tags