KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > test > xmlrpc > SystemProp


1 /******************************************************************************
2  * SystemProp.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
10 package org.openlaszlo.test.xmlrpc;
11
12 import org.apache.xmlrpc.*;
13 import java.util.*;
14
15 public class SystemProp
16 {
17     public static Hashtable getProperties()
18     {
19         return System.getProperties();
20     }
21
22     public static void main(String JavaDoc argv[])
23     {
24         WebServer ws = new WebServer(8181);
25         SystemProp se = new SystemProp();
26         ws.addHandler("localservice", se);
27         ws.start();
28     }
29 }
Popular Tags