01: //========================================================================
02: //$Id: JettyPluginServer.java 808 2006-08-22 14:22:22Z janb $
03: //Copyright 2000-2004 Mort Bay Consulting Pty. Ltd.
04: //------------------------------------------------------------------------
05: //Licensed under the Apache License, Version 2.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: //http://www.apache.org/licenses/LICENSE-2.0
09: //Unless required by applicable law or agreed to in writing, software
10: //distributed under the License is distributed on an "AS IS" BASIS,
11: //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: //See the License for the specific language governing permissions and
13: //limitations under the License.
14: //========================================================================
15:
16: package org.mortbay.jetty.plugin.util;
17:
18: /**
19: * JettyPluginServer
20: *
21: *
22: * Type to hide differences in API for different versions
23: * of Jetty for Server class.
24: *
25: */
26: public interface JettyPluginServer extends Proxy {
27: public void setRequestLog(Object requestLog);
28:
29: public Object getRequestLog();
30:
31: public void setConnectors(Object[] connectors) throws Exception;
32:
33: public Object[] getConnectors();
34:
35: public void setUserRealms(Object[] realms) throws Exception;
36:
37: public Object[] getUserRealms();
38:
39: public void configureHandlers() throws Exception;
40:
41: public void addWebApplication(JettyPluginWebApplication webapp)
42: throws Exception;
43:
44: public void start() throws Exception;
45:
46: public Object createDefaultConnector(String port) throws Exception;
47:
48: public JettyPluginWebApplication createWebApplication()
49: throws Exception;
50:
51: public void join() throws Exception;
52:
53: }
|