01: /*
02: * Copyright 2007 The Kuali Foundation
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package edu.iu.uis.eden.server;
17:
18: import org.apache.log4j.Logger;
19: import org.kuali.rice.core.Core;
20: import org.kuali.rice.test.BaseTestServer;
21: import org.mortbay.jetty.Server;
22: import org.mortbay.jetty.webapp.WebAppContext;
23:
24: public class TestClient1 extends BaseTestServer {
25:
26: private static final Logger LOG = Logger
27: .getLogger(TestClient1.class);
28:
29: private static final String CONTEXT = "/TestClient1";
30:
31: @Override
32: protected Server createServer() {
33: Server server = new Server(new Integer(Core
34: .getCurrentContextConfig().getProperty(
35: "ksb.client1.port")));
36: String location = Core.getCurrentContextConfig().getProperty(
37: "client1.location");
38: LOG.debug("#####################################");
39: LOG.debug("#");
40: LOG.debug("# Starting Client1 using location " + location);
41: LOG.debug("#");
42: LOG.debug("#####################################");
43: WebAppContext context = new WebAppContext(location, CONTEXT);
44: server.addHandler(context);
45: return server;
46: }
47: }
|