geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/web AbstractWebApplication.java AbstractWebContainer.java WebApplication.java WebConnector.java WebContainer.java
Date Thu, 14 Aug 2003 09:55:11 GMT
janb        2003/08/14 02:55:11

  Added:       modules/core/src/java/org/apache/geronimo/web
                        AbstractWebApplication.java
                        AbstractWebContainer.java WebApplication.java
                        WebConnector.java WebContainer.java
  Log:
  Place holder classes for web container framework. Can't make much more progress on this
until we have a good
  Container to Component model.
  
  Revision  Changes    Path
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/web/AbstractWebApplication.java
  
  Index: AbstractWebApplication.java
  ===================================================================
  /* ====================================================================
  * The Apache Software License, Version 1.1
  *
  * Copyright (c) 2003 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
  *    the documentation and/or other materials provided with the
  *    distribution.
  *
  * 3. The end-user documentation included with the redistribution,
  *    if any, must include the following acknowledgment:
  *       "This product includes software developed by the
  *        Apache Software Foundation (http://www.apache.org/)."
  *    Alternately, this acknowledgment may appear in the software itself,
  *    if and wherever such third-party acknowledgments normally appear.
  *
  * 4. The names "Apache" and "Apache Software Foundation" and
  *    "Apache Geronimo" must not be used to endorse or promote products
  *    derived from this software without prior written permission. For
  *    written permission, please contact apache@apache.org.
  *
  * 5. Products derived from this software may not be called "Apache",
  *    "Apache Geronimo", nor may "Apache" appear in their name, without
  *    prior written permission of the Apache Software Foundation.
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * ====================================================================
  *
  * This software consists of voluntary contributions made by many
  * individuals on behalf of the Apache Software Foundation.  For more
  * information on the Apache Software Foundation, please see
  * <http://www.apache.org/>.
  *
  * ====================================================================
  */
  
  
  package org.apache.geronimo.web;
  
  import java.net.URL;
  
  import org.apache.geronimo.common.AbstractComponent;
  import org.w3c.dom.Document;
  
  
  /* --------------------------------------------------------------------------------------
*/
  /**
   * AbstractWebApplication
   *  
   * Instances are created by a deployer. The deployer finds the 
   * WebContainer and associates it with the WebApplication, then calls
   *  deploy() on the container passing in the identity of the WebApplication.
   * 
   * 
   * @version $Revision: 1.1 $ $Date: 2003/08/14 09:55:11 $
   */
  public class AbstractWebApplication  extends AbstractComponent implements WebApplication
{
  
  	   
      public AbstractWebApplication ()
      {
      }
  	
  
  
      /* --------------------------------------------------------------------------------------
*/
      /* Start the webapp. Called by the container or management interface
       * @throws Exception
       * @throws IllegalStateException
       * @see org.apache.geronimo.common.Component#start()
       */
      public  void doStart() throws Exception {
          if (getContainer() == null)
              throw new IllegalStateException ("WebApplication must have a container set before
START can be called");
              
              //start the webapp
      }
  
  
  	
  	/* --------------------------------------------------------------------------------------
*/
  	/* Stop the webapp. Called by the container, or by mangement
       * interface
  	 * 
  	 * @see org.apache.geronimo.common.Component#stop()
  	 */
  	public void doStop() {	
  		
  	}
  
  
  
  	
  
  
  	
  	/* --------------------------------------------------------------------------------------
*/
  	/* Return the list of Servlets of this webapp
  	 * @return
  	 * @see org.apache.geronimo.web.WebApplication#getServlets()
  	 */
  	public String[] getServlets() {
  		return null;
  	}
  
  	
  	/* --------------------------------------------------------------------------------------
*/
  	/* Get the context path of this webapp
  	 * @return
  	 * @see org.apache.geronimo.web.WebApplication#getContextName()
  	 */
  	public String getContextPath() {
  		// TODO
  		return null;
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* 
  	 * @return
  	 * @see org.apache.geronimo.web.WebApplication#getDeploymentDescriptor()
  	 */
  	public Document getDeploymentDescriptor() {
  		// TODO
  		return null;
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* 
  	 * @return
  	 * @see org.apache.geronimo.web.WebApplication#getDeploymentDescriptorURL()
  	 */
  	public URL getDeploymentDescriptorURL() {
  		// TODO
  		return null;
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* 
  	 * @return
  	 * @see org.apache.geronimo.web.WebApplication#getURL()
  	 */
  	public URL getURL() {
  		// TODO
  		return null;
  	}
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/web/AbstractWebContainer.java
  
  Index: AbstractWebContainer.java
  ===================================================================
  /* ====================================================================
  * The Apache Software License, Version 1.1
  *
  * Copyright (c) 2003 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
  *    the documentation and/or other materials provided with the
  *    distribution.
  *
  * 3. The end-user documentation included with the redistribution,
  *    if any, must include the following acknowledgment:
  *       "This product includes software developed by the
  *        Apache Software Foundation (http://www.apache.org/)."
  *    Alternately, this acknowledgment may appear in the software itself,
  *    if and wherever such third-party acknowledgments normally appear.
  *
  * 4. The names "Apache" and "Apache Software Foundation" and
  *    "Apache Geronimo" must not be used to endorse or promote products
  *    derived from this software without prior written permission. For
  *    written permission, please contact apache@apache.org.
  *
  * 5. Products derived from this software may not be called "Apache",
  *    "Apache Geronimo", nor may "Apache" appear in their name, without
  *    prior written permission of the Apache Software Foundation.
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * ====================================================================
  *
  * This software consists of voluntary contributions made by many
  * individuals on behalf of the Apache Software Foundation.  For more
  * information on the Apache Software Foundation, please see
  * <http://www.apache.org/>.
  *
  * ====================================================================
  */
  
  package org.apache.geronimo.web;
  
  
  
  import javax.management.ObjectName;
  
  import org.apache.geronimo.common.AbstractContainer;
  import org.apache.geronimo.common.Invocation;
  import org.apache.geronimo.common.InvocationResult;
  
  
  
  /* --------------------------------------------------------------------------------------
*/
  /**
   * AbstractWebContainer
   * 
   * 
   * @version $Revision: 1.1 $
   */
  public class AbstractWebContainer
  	extends  AbstractContainer
  	implements WebContainer {
          
          private String defaultWebXmlURL = null;
  	
      
      
      
      
  	
  
      /* --------------------------------------------------------------------------------------
*/
  	/* Start the container
  	 * @throws Exception
  	 * @see org.apache.geronimo.common.AbstractComponent#doStart()
  	 */
  	public void doStart() throws Exception {
          
      }
  	
  	
      /* --------------------------------------------------------------------------------------
*/
  	/* Stop the container
  	 * @throws Exception
  	 * @see org.apache.geronimo.common.AbstractStateManageable#doStop()
  	 */
  	public void doStop() throws Exception {
      }
  
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* Convenience method. Creates a WebApplication from the url
       * and associates it with this container.
  	 * @param url
  	 * @throws Exception
  	 * @see org.apache.geronimo.web.WebContainer#deploy(java.lang.String)
  	 */
  	public void deploy(String url) throws Exception {
  	 
  	}
  
  	
  
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* Get the URL of the web defaults
  	 * @return
  	 * @see org.apache.geronimo.web.WebContainer#getDefaultWebXmlURL()
  	 */
  	public String getDefaultWebXmlURL() {
  		  return defaultWebXmlURL;
  	}
  
  	
  	
  	/* --------------------------------------------------------------------------------------
*/
  	/* Set a url of a web.xml containing defaults for the continer
  	 * @param url
  	 * @see org.apache.geronimo.web.WebContainer#setDefaultWebXmlURL(java.lang.String)
  	 */
  	public void setDefaultWebXmlURL(String url) {
  	   defaultWebXmlURL = url;
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* @todo work out if this method can be delegated to some other subclass
  	 * @param invocation
  	 * @return
  	 * @throws Exception
  	 * @see org.apache.geronimo.common.Container#invoke(org.apache.geronimo.common.Invocation)
  	 */
  	public InvocationResult invoke(Invocation invocation) throws Exception {
  		// TODO
  		return null;
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* @todo work out what relationship, if any, this has to Component
  	 * @param logicalPluginName
  	 * @return
  	 * @see org.apache.geronimo.common.Container#getPlugin(java.lang.String)
  	 */
  	public ObjectName getPlugin(String logicalPluginName) {
  		// TODO
  		return null;
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* @todo Work out if this is the method to add Components. 
       * 
  	 * @param logicalPluginName
  	 * @param objectName
  	 * @see org.apache.geronimo.common.Container#putPlugin(java.lang.String, javax.management.ObjectName)
  	 */
  	public void putPlugin(String logicalPluginName, ObjectName objectName) {
  		// TODO
  		
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* @todo work out what relationship if any this has to Components
  	 * @param logicalPluginName
  	 * @return
  	 * @deprecated
  	 * @see org.apache.geronimo.common.Container#getPluginObject(java.lang.String)
  	 */
  	public Object getPluginObject(String logicalPluginName) {
  		// TODO
  		return null;
  	}
  
  	/* --------------------------------------------------------------------------------------
*/
  	/* @todo workout what relationship, if any, this has to Components
  	 * @param logicalPluginName
  	 * @param plugin
  	 * @deprecated
  	 * @see org.apache.geronimo.common.Container#putPluginObject(java.lang.String, java.lang.Object)
  	 */
  	public void putPluginObject(String logicalPluginName, Object plugin) {
  		// TODO
  		
  	}
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/web/WebApplication.java
  
  Index: WebApplication.java
  ===================================================================
  /* ====================================================================
  * The Apache Software License, Version 1.1
  *
  * Copyright (c) 2003 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
  *    the documentation and/or other materials provided with the
  *    distribution.
  *
  * 3. The end-user documentation included with the redistribution,
  *    if any, must include the following acknowledgment:
  *       "This product includes software developed by the
  *        Apache Software Foundation (http://www.apache.org/)."
  *    Alternately, this acknowledgment may appear in the software itself,
  *    if and wherever such third-party acknowledgments normally appear.
  *
  * 4. The names "Apache" and "Apache Software Foundation" and
  *    "Apache Geronimo" must not be used to endorse or promote products
  *    derived from this software without prior written permission. For
  *    written permission, please contact apache@apache.org.
  *
  * 5. Products derived from this software may not be called "Apache",
  *    "Apache Geronimo", nor may "Apache" appear in their name, without
  *    prior written permission of the Apache Software Foundation.
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * ====================================================================
  *
  * This software consists of voluntary contributions made by many
  * individuals on behalf of the Apache Software Foundation.  For more
  * information on the Apache Software Foundation, please see
  * <http://www.apache.org/>.
  *
  * ====================================================================
  */
  
  package org.apache.geronimo.web;
  
  import java.net.URL;
  
  import org.apache.geronimo.common.Component;
  import org.w3c.dom.Document;
  
  /* --------------------------------------------------------------------------------------
*/
  /**
   * WebApplication
   * This interface represents a web application deployable within
   * a WebContainer.
   * 
   * It supports the JSR077 WebModule attribute servlets[]
   *
   * @version  $Revision: 1.1 $ $Date: 2003/08/14 09:55:11 $
   */
  public interface WebApplication extends Component {
  
  	/* --------------------------------------------------------------------------------------
*/
  	/**Get the url of the webapp
  	* @return
  	*/
  	public URL getURL();
  
  	/*-------------------------------------------------------------------------------- */
  	/** JSR077 WebModule method to expose the
  	 * names of all servlets contained within this webapp.
  	 * 
  	* @return Names of all servlets contained by this webapp
  	*/
  	public String[] getServlets();
  
  	public String getContextPath();
  
  	public Document getDeploymentDescriptor();
      
      public URL getDeploymentDescriptorURL();
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/web/WebConnector.java
  
  Index: WebConnector.java
  ===================================================================
  /* ====================================================================
  * The Apache Software License, Version 1.1
  *
  * Copyright (c) 2003 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
  *    the documentation and/or other materials provided with the
  *    distribution.
  *
  * 3. The end-user documentation included with the redistribution,
  *    if any, must include the following acknowledgment:
  *       "This product includes software developed by the
  *        Apache Software Foundation (http://www.apache.org/)."
  *    Alternately, this acknowledgment may appear in the software itself,
  *    if and wherever such third-party acknowledgments normally appear.
  *
  * 4. The names "Apache" and "Apache Software Foundation" and
  *    "Apache Geronimo" must not be used to endorse or promote products
  *    derived from this software without prior written permission. For
  *    written permission, please contact apache@apache.org.
  *
  * 5. Products derived from this software may not be called "Apache",
  *    "Apache Geronimo", nor may "Apache" appear in their name, without
  *    prior written permission of the Apache Software Foundation.
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * ====================================================================
  *
  * This software consists of voluntary contributions made by many
  * individuals on behalf of the Apache Software Foundation.  For more
  * information on the Apache Software Foundation, please see
  * <http://www.apache.org/>.
  *
  * ====================================================================
  */
  
  /*
   * WebConnector
   * 
   * 
   * @author    jan@coredevelopers.net
   * @version  Aug 10, 2003
   */
  package org.apache.geronimo.web;
  
  
  
  import org.apache.geronimo.common.Component;
  
  
  
  
  /* --------------------------------------------------------------------------------------
*/
  /**
   * WebConnector
   * 
   * 
   * @version $Revision: 1.1 $ $Date: 2003/08/14 09:55:11 $
   */
  public interface WebConnector extends Component {
  
  
  	/*-------------------------------------------------------------------------------- */
  	/** Port number of connector
  	* @param port number on which to listen
  	*/
  	public void setPort (int port);
  	
  	public int getPort ();
  	
  	/*-------------------------------------------------------------------------------- */
  	/** Protocol of connector
  	* @param protocol eg http, https, ftp etc
  	*/
  	public void setProtocol (String protocol);
  	
  	public String getProtocol();
  	
  	/*-------------------------------------------------------------------------------- */
  	/** Interface of connector
  	* @param iface (hostname or IP) on which to listen
  	*/
  	public void setInterface (String iface);
  	
  	public String getInterface ();
  	
  	/*-------------------------------------------------------------------------------- */
  	/** Maximum number of connections supported by connector
  	* @param maxConnects
  	*/
  	public void setMaxConnections (int maxConnects);
  	
  	public int getMaxConnections ();
  	
  	/*-------------------------------------------------------------------------------- */
  	/** Maximum time (in ms) that a connection can be idle
  	 * before the connector will close it.
  	* @param maxIdleTime time in msec
  	*/
  	public void setMaxIdleTime (int maxIdleTime);
  	
  	public int getMaxIdleTime ();
  	
  	/*-------------------------------------------------------------------------------- */
  	/** Names of contexts that must be registered and started
  	 * in the associated web container before this connector will
  	 * accept connections.
  	* @param contexts
  	*/
  	public void setContexts (String[] contexts);
  	
  	public String[] getContexts();
  }
  
  
  
  1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/web/WebContainer.java
  
  Index: WebContainer.java
  ===================================================================
  /* ====================================================================
  * The Apache Software License, Version 1.1
  *
  * Copyright (c) 2003 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
  *    the documentation and/or other materials provided with the
  *    distribution.
  *
  * 3. The end-user documentation included with the redistribution,
  *    if any, must include the following acknowledgment:
  *       "This product includes software developed by the
  *        Apache Software Foundation (http://www.apache.org/)."
  *    Alternately, this acknowledgment may appear in the software itself,
  *    if and wherever such third-party acknowledgments normally appear.
  *
  * 4. The names "Apache" and "Apache Software Foundation" and
  *    "Apache Geronimo" must not be used to endorse or promote products
  *    derived from this software without prior written permission. For
  *    written permission, please contact apache@apache.org.
  *
  * 5. Products derived from this software may not be called "Apache",
  *    "Apache Geronimo", nor may "Apache" appear in their name, without
  *    prior written permission of the Apache Software Foundation.
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * ====================================================================
  *
  * This software consists of voluntary contributions made by many
  * individuals on behalf of the Apache Software Foundation.  For more
  * information on the Apache Software Foundation, please see
  * <http://www.apache.org/>.
  *
  * ====================================================================
  */
  
  
  package org.apache.geronimo.web;
  
  import org.apache.geronimo.common.Container;
  
  /*
   * WebContainer
   *  
   * 
   * @version $Revision: 1.1 $ 
   */
  public interface WebContainer extends Container {
  
  	
  	/*-------------------------------------------------------------------------------- */
  	/** Deploy a web application. Convenience method to 
       * have the container create the WebApplication and add it to itself.
  	* @param url 
  	* @throws Exception
  	*/
  	public void deploy (String url) throws Exception;
  	
      
  
  	/*-------------------------------------------------------------------------------- */
  	/** Set up a web.xml descriptor for the Container to use as
       * defaults.
  	* @param url 
  	*/
  	public void setDefaultWebXmlURL (String url);
  	
  	
  	/*-------------------------------------------------------------------------------- */
  	/** Get the url of the default web.xml descriptor used 
       * by this container.
  	* @return
  	*/
  	public String getDefaultWebXmlURL ();
  }
  
  
  

Mime
View raw message