1 package net.sourceforge.argval.lang;
2
3
4
5
6 /**
7 * Contains the <code>String</code> constants, for getting property values from
8 * the class <code>java.lang.System</code>.
9 *
10 * <pre>
11 * java.lang.System.getProperty(SystemConstants.JAVA_VERSION);
12 * </pre>
13 * See
14 * <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()">
15 * java.lang.System.getProperties()
16 * </a> for more details.
17 *
18 * @author $Author: verha001 $
19 * @version $Revision: 1.1 $
20 * Last modified: $Date: 2006/11/16 11:20:23 $
21 */
22 public final class SystemConstants {
23
24 /** Hide constructor */
25 private SystemConstants() {
26 }
27
28 /** Java Runtime Environment version */
29 public static final String JAVA_VERSION = "java.version";
30 /** Java Runtime Environment vendor */
31 public static final String JAVA_VENDOR = "java.vendor";
32 /** Java vendor URL */
33 public static final String JAVA_VENDOR_URL = "java.vendor.url";
34 /** Java installation directory */
35 public static final String JAVA_HOME = "java.home";
36 /** Java Virtual Machine specification version */
37 public static final String JAVA_VM_SPECIFICATION_VERSION = "java.vm.specification.version";
38 /** Java Virtual Machine specification vendor */
39 public static final String JAVA_VM_SPECIFICATION_VENDOR = "java.vm.specification.vendor";
40 /** Java Virtual Machine specification name */
41 public static final String JAVA_VM_SPECIFICATION_NAME = "java.vm.specification.name";
42 /** Java Virtual Machine implementation version */
43 public static final String JAVA_VM_VERSION = "java.vm.version";
44 /** Java Virtual Machine implementation vendor */
45 public static final String JAVA_VM_VENDOR = "java.vm.vendor";
46 /** Java Virtual Machine implementation name */
47 public static final String JAVA_VM_NAME = "java.vm.name";
48 /** Java Runtime Environment specification version */
49 public static final String JAVA_SPECIFICATION_VERSION = "java.specification.version";
50 /** Java Runtime Environment specification vendor */
51 public static final String JAVA_SPECIFICATION_VENDOR = "java.specification.vendor";
52 /** Java Runtime Environment specification name */
53 public static final String JAVA_SPECIFICATION_NAME = "java.specification.name";
54 /** Java class format version number */
55 public static final String JAVA_CLASS_VERSION = "java.class.version";
56 /** Java class path */
57 public static final String JAVA_CLASS_PATH = "java.class.path";
58 /** List of paths to search when loading libraries */
59 public static final String JAVA_LIBRARY_PATH = "java.library.path";
60 /** Default temp file path */
61 public static final String JAVA_IO_TMPDIR = "java.io.tmpdir";
62 /** Name of JIT compiler to use */
63 public static final String JAVA_COMPILER = "java.compiler";
64 /** Path of extension directory or directories */
65 public static final String JAVA_EXT_DIRS = "java.ext.dirs";
66 /** Operating system name */
67 public static final String OS_NAME = "os.name";
68 /** Operating system architecture */
69 public static final String OS_ARCH = "os.arch";
70 /** Operating system version */
71 public static final String OS_VERSION = "os.version";
72 /** File separator ("/" on UNIX) */
73 public static final String FILE_SEPARATOR = "file.separator";
74 /** Path separator (":" on UNIX) */
75 public static final String PATH_SEPARATOR = "path.separator";
76 /** Line separator ("\n" on UNIX) */
77 public static final String LINE_SEPARATOR = "line.separator";
78 /** User's account name */
79 public static final String USER_NAME = "user.name";
80 /** User's home directory */
81 public static final String USER_HOME = "user.home";
82 /** User's current working directory */
83 public static final String USER_DIR = "user.dir";
84
85 /** The HTTP proxy hostname.
86 * @see #PROXY_PORT
87 * @see #NON_PROXY_HOSTS
88 * @see #PROXY_USER */
89 public final static String PROXY_HOST = "http.proxyHost";
90 /** The HTTP proxy port.
91 * @see #PROXY_HOST */
92 public final static String PROXY_PORT = "http.proxyPort";
93 /** The hosts to exclude from the HTTP proxy.
94 * @see #PROXY_HOST */
95 public final static String NON_PROXY_HOSTS = "http.nonProxyHosts";
96 /** The userid which is used for authentication on the HTTP proxy.
97 * @see #PROXY_HOST
98 * @see #PROXY_PASSWORD */
99 public final static String PROXY_USER = "http.proxyUser";
100 /** The password which is used for authentication on the HTTP proxy.
101 * @see #PROXY_HOST
102 * @see #PROXY_USER */
103 public final static String PROXY_PASSWORD = "http.proxyPassword";
104
105 }