001 /**
002 * Copyright 2005-2011 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.rice.ksb.server;
017
018 import org.apache.log4j.Logger;
019 import org.eclipse.jetty.server.Server;
020 import org.eclipse.jetty.webapp.WebAppContext;
021 import org.kuali.rice.core.api.config.property.ConfigContext;
022 import org.kuali.rice.ksb.BaseTestServer;
023
024 public class TestClient1 extends BaseTestServer {
025
026 private static final Logger LOG = Logger.getLogger(TestClient1.class);
027
028 private static final String CONTEXT = "/TestClient1";
029
030 @Override
031 protected Server createServer() {
032 Server server = new Server(new Integer(ConfigContext.getCurrentContextConfig().getProperty("ksb.client1.port")));
033 String location = ConfigContext.getCurrentContextConfig().getProperty("client1.location");
034 LOG.debug("#####################################");
035 LOG.debug("#");
036 LOG.debug("# Starting Client1 using location " + location);
037 LOG.debug("#");
038 LOG.debug("#####################################");
039 WebAppContext context = new WebAppContext(location, CONTEXT);
040 server.setHandler(context);
041 return server;
042 }
043 }