亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? servletcontext.java

?? 圖書管理系統,用JSP實現,圖書的查詢,添加等功能
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999 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 acknowlegement:  
 *       "This product includes software developed by the 
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowlegement may appear in the software itself,
 *    if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
 *    Foundation" 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"
 *    nor may "Apache" appear in their names without prior written
 *    permission of the Apache Group.
 *
 * 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/>.
 *
 * ====================================================================
 *
 * This source code implements specifications defined by the Java
 * Community Process. In order to remain compliant with the specification
 * DO NOT add / change / or delete method signatures!
 */

package javax.servlet;

import java.io.InputStream;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
import java.util.Enumeration;


/**
 * 
 * Defines a set of methods that a servlet uses to communicate with its
 * servlet container, for example, to get the MIME type of a file, dispatch
 * requests, or write to a log file.
 *
 * <p>There is one context per "web application" per Java Virtual Machine.  (A
 * "web application" is a collection of servlets and content installed under a
 * specific subset of the server's URL namespace such as <code>/catalog</code>
 * and possibly installed via a <code>.war</code> file.) 
 *
 * <p>In the case of a web
 * application marked "distributed" in its deployment descriptor, there will
 * be one context instance for each virtual machine.  In this situation, the 
 * context cannot be used as a location to share global information (because
 * the information won't be truly global).  Use an external resource like 
 * a database instead.
 *
 * <p>The <code>ServletContext</code> object is contained within 
 * the {@link ServletConfig} object, which the Web server provides the
 * servlet when the servlet is initialized.
 *
 * @author 	Various
 * @version 	$Version$
 *
 * @see 	Servlet#getServletConfig
 * @see 	ServletConfig#getServletContext
 *
 */

public interface ServletContext {


    /**
     * Returns a <code>ServletContext</code> object that 
     * corresponds to a specified URL on the server.
     *
     * <p>This method allows servlets to gain
     * access to the context for various parts of the server, and as
     * needed obtain {@link RequestDispatcher} objects from the context.
     * The given path must be absolute (beginning with "/") and is 
     * interpreted based on the server's document root. 
     * 
     * <p>In a security conscious environment, the servlet container may
     * return <code>null</code> for a given URL.
     *       
     * @param uripath 	a <code>String</code> specifying the absolute URL of 
     *			a resource on the server
     *
     * @return		the <code>ServletContext</code> object that
     *			corresponds to the named URL
     *
     * @see 		RequestDispatcher
     *
     */

    public ServletContext getContext(String uripath);
    
    

    /**
     * Returns the major version of the Java Servlet API that this
     * servlet container supports. All implementations that comply
     * with Version 2.2 must have this method
     * return the integer 2.
     *
     * @return 		2
     *
     */
    
    public int getMajorVersion();
    
    

    /**
     * Returns the minor version of the Servlet API that this
     * servlet container supports. All implementations that comply
     * with Version 2.2 must have this method
     * return the integer 2.
     *
     * @return 		2
     *
     */

    public int getMinorVersion();
    
    

    /**
     * Returns the MIME type of the specified file, or <code>null</code> if 
     * the MIME type is not known. The MIME type is determined
     * by the configuration of the servlet container, and may be specified
     * in a web application deployment descriptor. Common MIME
     * types are <code>"text/html"</code> and <code>"image/gif"</code>.
     *
     *
     * @param   file    a <code>String</code> specifying the name
     *			of a file
     *
     * @return 		a <code>String</code> specifying the file's MIME type
     *
     */

    public String getMimeType(String file);
    
    

    /**
     * Returns a URL to the resource that is mapped to a specified
     * path. The path must begin with a "/" and is interpreted
     * as relative to the current context root.
     *
     * <p>This method allows the servlet container to make a resource 
     * available to servlets from any source. Resources 
     * can be located on a local or remote
     * file system, in a database, or in a <code>.war</code> file. 
     *
     * <p>The servlet container must implement the URL handlers
     * and <code>URLConnection</code> objects that are necessary
     * to access the resource.
     *
     * <p>This method returns <code>null</code>
     * if no resource is mapped to the pathname.
     *
     * <p>Some containers may allow writing to the URL returned by
     * this method using the methods of the URL class.
     *
     * <p>The resource content is returned directly, so be aware that 
     * requesting a <code>.jsp</code> page returns the JSP source code.
     * Use a <code>RequestDispatcher</code> instead to include results of 
     * an execution.
     *
     * <p>This method has a different purpose than
     * <code>java.lang.Class.getResource</code>,
     * which looks up resources based on a class loader. This
     * method does not use class loaders.
     * 
     * @param path 				a <code>String</code> specifying
     *						the path to the resource
     *
     * @return 					the resource located at the named path,
     * 						or <code>null</code> if there is no resource
     *						at that path
     *
     * @exception MalformedURLException 	if the pathname is not given in 
     * 						the correct form
     *
     */
    
    public URL getResource(String path) throws MalformedURLException;
    
    

    /**
     * Returns the resource located at the named path as
     * an <code>InputStream</code> object.
     *
     * <p>The data in the <code>InputStream</code> can be 
     * of any type or length. The path must be specified according
     * to the rules given in <code>getResource</code>.
     * This method returns <code>null</code> if no resource exists at
     * the specified path. 
     * 
     * <p>Meta-information such as content length and content type
     * that is available via <code>getResource</code>
     * method is lost when using this method.
     *
     * <p>The servlet container must implement the URL handlers
     * and <code>URLConnection</code> objects necessary to access
     * the resource.
     *
     * <p>This method is different from 
     * <code>java.lang.Class.getResourceAsStream</code>,
     * which uses a class loader. This method allows servlet containers 
     * to make a resource available
     * to a servlet from any location, without using a class loader.
     * 
     *
     * @param name 	a <code>String</code> specifying the path
     *			to the resource
     *
     * @return 		the <code>InputStream</code> returned to the 
     *			servlet, or <code>null</code> if no resource
     *			exists at the specified path 
     *
     *
     */

    public InputStream getResourceAsStream(String path);
    



    /**
     * 
     * Returns a {@link RequestDispatcher} object that acts
     * as a wrapper for the resource located at the given path.
     * A <code>RequestDispatcher</code> object can be used to forward 
     * a request to the resource or to include the resource in a response.
     * The resource can be dynamic or static.
     *
     * <p>The pathname must begin with a "/" and is interpreted as relative
     * to the current context root.  Use <code>getContext</code> to obtain
     * a <code>RequestDispatcher</code> for resources in foreign contexts.
     * This method returns <code>null</code> if the <code>ServletContext</code>
     * cannot return a <code>RequestDispatcher</code>.
     *
     * @param path 	a <code>String</code> specifying the pathname
     *			to the resource
     *
     * @return 		a <code>RequestDispatcher</code> object
     *			that acts as a wrapper for the resource
     *			at the specified path
     *
     * @see 		RequestDispatcher
     * @see 		ServletContext#getContext
     *
     */

    public RequestDispatcher getRequestDispatcher(String path);



    /**
     * Returns a {@link RequestDispatcher} object that acts
     * as a wrapper for the named servlet.
     *
     * <p>Servlets (and JSP pages also) may be given names via server 
     * administration or via a web application deployment descriptor.
     * A servlet instance can determine its name using 
     * {@link ServletConfig#getServletName}.
     *
     * <p>This method returns <code>null</code> if the 
     * <code>ServletContext</code>
     * cannot return a <code>RequestDispatcher</code> for any reason.
     *
     * @param name 	a <code>String</code> specifying the name
     *			of a servlet to wrap
     *
     * @return 		a <code>RequestDispatcher</code> object
     *			that acts as a wrapper for the named servlet
     *
     * @see 		RequestDispatcher
     * @see 		ServletContext#getContext
     * @see 		ServletConfig#getServletName
     *
     */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品成人网| 麻豆免费看一区二区三区| 亚洲国产欧美另类丝袜| 国模少妇一区二区三区| 在线看国产一区二区| 日本一区二区三区免费乱视频 | 久久综合av免费| 亚洲综合区在线| 成人一区二区三区视频| 26uuu另类欧美亚洲曰本| 亚洲成人免费在线观看| 91年精品国产| 日本一二三不卡| 国内精品写真在线观看| 欧美情侣在线播放| 亚洲狠狠丁香婷婷综合久久久| 粉嫩aⅴ一区二区三区四区五区| 欧美一级免费大片| 色哟哟国产精品| 国产精品激情偷乱一区二区∴| 极品销魂美女一区二区三区| 欧美一区二区三区精品| 天堂成人国产精品一区| 欧美探花视频资源| 一区二区高清视频在线观看| 99精品1区2区| 成人欧美一区二区三区视频网页 | 99久久国产综合精品女不卡| 国产欧美视频在线观看| 国产精品一二三四五| 精品国产1区2区3区| 极品少妇一区二区三区精品视频 | 中文字幕一区三区| 成人黄色软件下载| 亚洲视频在线一区二区| 色视频欧美一区二区三区| 一区二区三区精密机械公司| 91麻豆视频网站| 亚洲国产综合在线| 91精品黄色片免费大全| 蜜桃av一区二区三区| 2024国产精品视频| 国产xxx精品视频大全| 国产精品萝li| 欧美日韩在线播放一区| 日本麻豆一区二区三区视频| 日韩一区二区三区电影在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美精品一区二区蜜臀亚洲| 国产精品一区二区黑丝 | 欧美va亚洲va香蕉在线| 国产一区二区三区美女| 1区2区3区精品视频| 欧美日韩中文字幕一区二区| 久久精品久久99精品久久| 国产三级精品三级在线专区| 色综合网色综合| 男人的j进女人的j一区| 中文字幕欧美国产| 欧美日韩在线播| 国产成人免费视| 亚洲国产精品嫩草影院| 久久网这里都是精品| 97精品久久久午夜一区二区三区| 亚洲日本护士毛茸茸| 91精品综合久久久久久| 国产成人午夜电影网| 亚洲国产综合91精品麻豆| 亚洲精品视频免费看| 日韩欧美在线一区二区三区| 不卡一区二区三区四区| 日本aⅴ亚洲精品中文乱码| 国产免费观看久久| 欧美精品高清视频| 99久久精品国产麻豆演员表| 久久精品国产网站| 亚洲亚洲精品在线观看| 日本一区二区视频在线观看| 欧美精品粉嫩高潮一区二区| 成人国产一区二区三区精品| 男男gaygay亚洲| 亚洲欧美aⅴ...| 国产日产欧美一区二区三区| 在线不卡中文字幕播放| 91在线观看一区二区| 九九久久精品视频| 五月婷婷色综合| 亚洲男同1069视频| 国产精品入口麻豆九色| 欧美不卡一区二区三区| 欧美日韩国产精品成人| 色综合天天综合| 国产精品自拍一区| 久久国内精品自在自线400部| 亚洲成人777| 一区二区三区四区不卡视频 | 日韩丝袜美女视频| 色av一区二区| av动漫一区二区| 成人深夜视频在线观看| 国产一区二区影院| 久久精品国产在热久久| 免费成人你懂的| 日本人妖一区二区| 日产国产高清一区二区三区| 午夜久久福利影院| 午夜电影网亚洲视频| 婷婷开心久久网| 亚洲mv大片欧洲mv大片精品| 一区二区三区中文字幕电影| 亚洲激情图片qvod| 亚洲黄色性网站| 一区二区三区在线观看国产 | 久久99国产精品免费网站| 日韩精品色哟哟| 日韩电影在线免费观看| 日本不卡123| 另类小说色综合网站| 激情六月婷婷综合| 国产乱国产乱300精品| 国产在线观看一区二区| 国产福利一区二区三区在线视频| 国产精品一区二区久久不卡| 国产成人精品免费网站| av一本久道久久综合久久鬼色| 99精品黄色片免费大全| 欧美在线播放高清精品| 在线成人小视频| 精品国产免费久久| 国产精品日韩成人| 一级特黄大欧美久久久| 五月婷婷综合网| 麻豆成人91精品二区三区| 国产黑丝在线一区二区三区| 成人avav影音| 欧美中文字幕久久| 欧美成人一区二区三区片免费| 久久综合九色综合欧美亚洲| 国产精品乱码一区二三区小蝌蚪| 夜夜嗨av一区二区三区网页| 免费观看在线色综合| 国产成a人亚洲精品| 91精品福利在线| 日韩欧美一区二区在线视频| 久久精品人人做人人综合| 亚洲精品视频在线观看免费| 麻豆国产精品一区二区三区| 成人午夜电影小说| 欧美日韩国产综合视频在线观看| 日韩视频一区二区三区在线播放| 国产精品久久久久一区二区三区共| 亚洲国产一区二区三区青草影视| 美腿丝袜亚洲三区| 成人福利视频网站| 91麻豆精品国产91久久久更新时间| 国产日韩欧美精品一区| 亚洲电影你懂得| 国产成人精品一区二区三区四区 | 另类小说图片综合网| 成人国产亚洲欧美成人综合网| 欧美日韩在线观看一区二区 | 天堂在线一区二区| 国产成人午夜99999| 7777精品伊人久久久大香线蕉最新版| 国产亚洲综合性久久久影院| 一区二区三区在线视频观看| 国产精品1区2区3区| 欧美日韩中文字幕一区二区| 国产欧美精品一区| 奇米在线7777在线精品| 在线观看视频一区二区| 国产精品乱人伦中文| 精品在线观看免费| 欧美人牲a欧美精品| 亚洲人一二三区| 国产成人aaa| 久久你懂得1024| 久久精品国产精品青草| 欧美视频一区在线| 亚洲精品免费在线| av资源站一区| 国产精品人妖ts系列视频| 国产精品中文字幕日韩精品| 7777精品伊人久久久大香线蕉| 樱花影视一区二区| 91女人视频在线观看| 日韩码欧中文字| 99在线精品一区二区三区| 国产免费观看久久| 国产91精品精华液一区二区三区| 精品捆绑美女sm三区| 免费观看日韩电影| 日韩欧美一区在线| 九九视频精品免费| 精品久久久久久最新网址| 美女免费视频一区| 日韩久久免费av| 国产在线不卡一区| 久久精品在线观看| 懂色av噜噜一区二区三区av|