01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.test;
18:
19: import org.kuali.rice.lifecycle.Lifecycle;
20: import org.mortbay.jetty.Server;
21:
22: public class JettyLifecycle implements Lifecycle {
23:
24: private Server server;
25:
26: public boolean isStarted() {
27: return server.isStarted();
28: }
29:
30: public void start() throws Exception {
31: // server = new Server(new Integer(Core.getCurrentContextConfig().getProperty("http.service.port")));
32: // Context root = new Context(server,"/en-test",Context.SESSIONS);
33: // root.addServlet(new ServletHolder(new KSBDispatcherServlet()), "/remoting/*");
34: //server.start();
35: }
36:
37: public void stop() throws Exception {
38: server.stop();
39: }
40:
41: public Server getServer() {
42: return server;
43: }
44:
45: public void setServer(Server server) {
46: this.server = server;
47: }
48:
49: }
|