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