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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? servletcontext.java

?? 圖書管理系統(tǒng),用JSP實現(xiàn),圖書的查詢,添加等功能
?? 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
     *
     */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品高潮呻吟| 天天操天天干天天综合网| 欧美性做爰猛烈叫床潮| 黄色成人免费在线| 亚洲一区二区欧美激情| 国产亚洲欧美激情| 日韩一区二区免费高清| 成人av手机在线观看| 91日韩精品一区| 蜜臀久久99精品久久久画质超高清 | 国产精品九色蝌蚪自拍| 欧美一二三区在线| 日本久久一区二区三区| 高清在线观看日韩| 美女一区二区在线观看| 亚洲午夜精品一区二区三区他趣| 国产欧美日韩视频一区二区| 日韩欧美区一区二| 欧美日韩精品一区二区| 色就色 综合激情| av在线免费不卡| 国产suv精品一区二区三区| 三级不卡在线观看| 亚洲综合精品久久| 亚洲三级视频在线观看| 国产精品嫩草久久久久| 久久久精品综合| 日韩免费视频一区| 91精品国产91热久久久做人人| 91成人免费在线视频| 99久久精品国产导航| 成人一区在线观看| 粉嫩欧美一区二区三区高清影视 | 国产一区免费电影| 奇米影视在线99精品| 一级日本不卡的影视| 亚洲视频一区在线| 成人免费一区二区三区视频 | 国产美女在线观看一区| 麻豆91小视频| 精品亚洲成a人| 国内不卡的二区三区中文字幕| 麻豆免费看一区二区三区| 日本中文字幕一区二区视频| 日韩va欧美va亚洲va久久| 日韩综合小视频| 蜜臀精品久久久久久蜜臀 | 在线免费观看成人短视频| 色综合中文综合网| 国产亚洲成aⅴ人片在线观看| 日韩免费观看高清完整版| 日韩无一区二区| 日韩美女一区二区三区四区| 欧美变态tickle挠乳网站| 久久影院电视剧免费观看| 国产午夜精品久久久久久久| 欧美韩国日本不卡| 自拍av一区二区三区| 夜色激情一区二区| 三级成人在线视频| 国产一区二区三区黄视频| 成人国产视频在线观看| 色综合中文字幕| 欧美一区二区性放荡片| 久久久久久电影| 亚洲丝袜自拍清纯另类| 亚洲成人免费看| 久久精品国产免费| 99精品视频一区| 制服丝袜在线91| 国产亚洲一区二区三区在线观看 | 久久久精品综合| 自拍偷拍欧美精品| 青青草精品视频| 国产成人av电影| 欧美特级限制片免费在线观看| 日韩欧美在线影院| 亚洲三级理论片| 欧美a一区二区| 91亚洲国产成人精品一区二三| 欧美三级视频在线| 久久久99久久精品欧美| 自拍偷拍欧美精品| 美女诱惑一区二区| 一本久久a久久精品亚洲| 91精品国产综合久久精品| 欧美国产精品中文字幕| 婷婷国产v国产偷v亚洲高清| 成人h精品动漫一区二区三区| 欧美精品v日韩精品v韩国精品v| 欧美高清在线一区| 日韩vs国产vs欧美| 色欧美乱欧美15图片| 精品国产麻豆免费人成网站| 亚洲免费观看在线观看| 国产一区二区网址| 欧美性生活久久| 国产精品久久久久久久第一福利| 天堂资源在线中文精品| 白白色亚洲国产精品| 精品免费国产一区二区三区四区| 亚洲精品中文在线影院| 国产综合久久久久久久久久久久| 在线亚洲+欧美+日本专区| 久久狠狠亚洲综合| 91同城在线观看| 久久看人人爽人人| 日韩精品91亚洲二区在线观看| 波波电影院一区二区三区| 日韩一级片网站| 亚州成人在线电影| 在线欧美日韩国产| 中文字幕人成不卡一区| 国产一区二区三区最好精华液| 欧美精品一二三| 一区二区三区欧美亚洲| 暴力调教一区二区三区| 国产欧美日韩综合精品一区二区| 理论电影国产精品| 欧美裸体bbwbbwbbw| 艳妇臀荡乳欲伦亚洲一区| 99精品国产99久久久久久白柏| 国产欧美日韩在线| 国产精品一区二区三区99| 日韩精品中文字幕一区二区三区 | 亚洲成人一区二区在线观看| 一本色道久久综合亚洲91| 国产精品成人一区二区三区夜夜夜| 精品一区二区三区免费视频| 91精品国产综合久久福利| 亚洲成人av在线电影| 色综合 综合色| 日韩毛片在线免费观看| 91在线视频在线| 1区2区3区精品视频| 97国产一区二区| 日韩美女视频一区| 色综合久久久久综合体| 亚洲天堂2016| 在线看日本不卡| 亚洲一区在线观看视频| 欧美亚洲国产bt| 亚洲成人福利片| 538在线一区二区精品国产| 日本伊人精品一区二区三区观看方式| 欧美日韩成人综合在线一区二区| 亚洲第一av色| 91精品国产91久久久久久最新毛片| 奇米精品一区二区三区在线观看一| 欧美一区二区网站| 国产一区二区电影| 欧美激情综合五月色丁香小说| av一区二区三区黑人| 一区二区三区在线免费观看| 欧美在线综合视频| 日韩电影在线观看电影| 日韩欧美美女一区二区三区| 久久99精品久久久久久国产越南 | 亚洲综合激情另类小说区| 欧美日韩一级二级三级| 免费成人结看片| 久久久午夜精品理论片中文字幕| 不卡av电影在线播放| 一区二区视频免费在线观看| 欧美精品黑人性xxxx| 精品亚洲免费视频| 国产91高潮流白浆在线麻豆| 国产精品乱人伦中文| 欧美日韩综合一区| 激情成人午夜视频| 亚洲精品久久嫩草网站秘色| 欧美日韩久久不卡| 国内外成人在线| 亚洲欧美日韩综合aⅴ视频| 91精品国产免费久久综合| 国产成人综合自拍| 亚洲一二三四久久| 精品国产露脸精彩对白| 99精品视频在线播放观看| 婷婷成人激情在线网| 中文字幕av不卡| 91 com成人网| 成人福利视频在线看| 日韩激情视频网站| 国产精品麻豆一区二区| 欧美一区二区三区喷汁尤物| 成人性生交大片| 日韩电影在线观看一区| 中文字幕在线不卡国产视频| 欧美一区二区久久| 91一区在线观看| 久久国产精品第一页| 亚洲无线码一区二区三区| 久久久久久久免费视频了| 欧美日本高清视频在线观看| 成人中文字幕电影| 久久国产精品露脸对白| 亚洲国产一二三| 1024成人网色www| 国产亚洲欧美日韩俺去了|