01: package com.sun.portal.samples.asc.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.samples.asc.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: public static String defaultContainer = null;
16: public static String editContainer = null;
17: public static String defaultChannel = null;
18: public static String editChannel = null;
19:
20: static {
21: String defaultHost = "localhost";
22: try {
23: defaultHost = InetAddress.getLocalHost()
24: .getCanonicalHostName();
25: } catch (UnknownHostException e) {
26: // ignore
27: }
28: host = System.getProperty(namespace + "host", defaultHost);
29: port = System.getProperty(namespace + "port", "80");
30: loginUrl = System.getProperty(namespace + "loginUrl",
31: "amserver/UI/Login");
32: logoutUrl = System.getProperty(namespace + "logoutUrl",
33: "amserver/UI/Logout");
34: dtUrl = System.getProperty(namespace + "dtUrl", "portal/dt");
35: testLoginA = System.getProperty(namespace + "testLoginA",
36: "mary");
37: testPasswdA = System.getProperty(namespace + "testPasswdA",
38: "mary");
39: defaultContainer = System.getProperty(namespace
40: + "defaultContainer", "NewsContainer");
41: editContainer = System.getProperty(namespace + "editContainer",
42: "AJAXEditContainer");
43: defaultChannel = System.getProperty(namespace
44: + "defaultChannel", "NewsContainer%2FNextTourPoll");
45: editChannel = System.getProperty(namespace + "editChannel",
46: "NewsContainer%2FBookmark");
47: }
48:
49: }
|