01: package com.sun.portal.wireless.tests;
02:
03: import java.net.InetAddress;
04: import java.net.UnknownHostException;
05:
06: public class Configuration {
07: public static String namespace = "com.sun.portal.wireless.tests.";
08: public static String host = null;
09: public static String port = null;
10: public static String loginUrl = null;
11: public static String logoutUrl = null;
12: public static String dtUrl = null;
13: public static String testLoginA = null;
14: public static String testPasswdA = null;
15:
16: static {
17: String defaultHost = "localhost";
18: try {
19: defaultHost = InetAddress.getLocalHost()
20: .getCanonicalHostName();
21: } catch (UnknownHostException e) {
22: // ignore
23: }
24: host = System.getProperty(namespace + "host", defaultHost);
25: port = System.getProperty(namespace + "port", "80");
26: loginUrl = System.getProperty(namespace + "loginUrl",
27: "amserver/UI/Login");
28: logoutUrl = System.getProperty(namespace + "logoutUrl",
29: "amserver/UI/Logout");
30: dtUrl = System.getProperty(namespace + "dtUrl", "portal/dt");
31: testLoginA = System.getProperty(namespace + "testLoginA", "a");
32: testPasswdA = System
33: .getProperty(namespace + "testPasswdA", "a");
34: }
35:
36: }
|