1 //======================================================================== 2 //$Id: JettyPluginServer.java 2094 2007-09-10 06:11:26Z janb $ 3 //Copyright 2000-2004 Mort Bay Consulting Pty. Ltd. 4 //------------------------------------------------------------------------ 5 //Licensed under the Apache License, Version 2.0 (the "License"); 6 //you may not use this file except in compliance with the License. 7 //You may obtain a copy of the License at 8 //http://www.apache.org/licenses/LICENSE-2.0 9 //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 import org.mortbay.jetty.webapp.WebAppContext; 19 20 /** 21 * JettyPluginServer 22 * 23 * 24 * Type to hide differences in API for different versions 25 * of Jetty for Server class. 26 * 27 */ 28 public interface JettyPluginServer extends Proxy 29 { 30 public void setRequestLog(Object requestLog); 31 32 public Object getRequestLog(); 33 34 public void setConnectors (Object[] connectors) throws Exception; 35 public Object[] getConnectors(); 36 37 public void setUserRealms (Object[] realms) throws Exception; 38 public Object[] getUserRealms(); 39 40 public void configureHandlers () throws Exception; 41 42 public void addWebApplication (WebAppContext webapp) throws Exception; 43 44 public void start() throws Exception; 45 46 public Object createDefaultConnector (String port) throws Exception; 47 48 public void join () throws Exception; 49 50 }