1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.ksb.server;
18
19 import org.apache.log4j.Logger;
20 import org.eclipse.jetty.server.Server;
21 import org.eclipse.jetty.webapp.WebAppContext;
22 import org.kuali.rice.core.api.config.property.ConfigContext;
23 import org.kuali.rice.ksb.BaseTestServer;
24
25 import java.util.HashMap;
26 import java.util.Map;
27
28 public class TestClient2 extends BaseTestServer {
29
30 private static final Logger LOG = Logger.getLogger(TestClient2.class);
31
32 private static final String CONTEXT = "/TestClient2";
33
34
35
36
37 public static final String CUSTOM_KEYSTORE = "CustomKeyStore";
38
39 private static Map<String, Object> environment = new HashMap<String, Object>();
40
41 @Override
42 protected Server createServer() {
43
44 Server server = new Server(new Integer(ConfigContext.getCurrentContextConfig().getProperty("ksb.client2.port")));
45 String location = ConfigContext.getCurrentContextConfig().getProperty("client2.location");
46 LOG.debug("#####################################");
47 LOG.debug("#");
48 LOG.debug("# Starting Client2 using location " + location);
49 LOG.debug("#");
50 LOG.debug("#####################################");
51 WebAppContext context = new WebAppContext(location, CONTEXT);
52 server.setHandler(context);
53 return server;
54 }
55
56 public static Map<String, Object> getEnvironment() {
57 return environment;
58 }
59 }