001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 package org.apache.geronimo.management.geronimo; 018 019 import java.net.URL; 020 021 /** 022 * Geronimo extension to the standard JSR-77 WebModule type. 023 * 024 * @version $Rev: 562021 $ $Date: 2007-08-02 01:51:18 -0400 (Thu, 02 Aug 2007) $ 025 */ 026 public interface WebModule extends org.apache.geronimo.management.WebModule { 027 /** 028 * Gets the web context for this web app. 029 */ 030 public String getContextPath(); 031 032 /** 033 * Gets the ObjectName of the WebContainer that's hosting this 034 * WebModule. 035 */ 036 public WebContainer getContainer(); 037 038 /** 039 * Gets a name for this WAR file that can be used to identify the WAR to a 040 * user. This is not guaranteed to be anything in particular. 041 */ 042 public String getWARName(); 043 044 /** 045 * Gets the location of the web module "source" (typically an exploded 046 * directory). This is where e.g. a web server would look for static 047 * content or a user would copy updated JSPs to. 048 */ 049 public URL getWARDirectory(); 050 }