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

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

?? servletcontext.java

?? 使用java語言編寫的小應(yīng)用程序
?? 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
     *
     */

    public RequestDispatcher getNamedDispatcher(String name);
    

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕乱码一区二区免费| 成人免费在线播放视频| 成人午夜在线视频| 亚洲h动漫在线| 国产精品家庭影院| 精品国产亚洲在线| 在线观看免费一区| 99在线精品观看| 激情文学综合丁香| 日韩极品在线观看| 亚洲精品福利视频网站| 亚洲国产电影在线观看| 91精品国产麻豆国产自产在线 | 欧美视频中文一区二区三区在线观看| 精品一区二区三区在线视频| 亚洲综合成人在线| 中文字幕中文字幕在线一区 | 久久99日本精品| 亚洲综合免费观看高清完整版 | 亚洲精品国产成人久久av盗摄| 久久久美女毛片| 欧美一区二区二区| 7777精品伊人久久久大香线蕉| 91老司机福利 在线| 成人一区二区三区视频| 国产一区999| 久久精品国产**网站演员| 午夜精品123| 亚洲午夜影视影院在线观看| 亚洲激情自拍偷拍| 亚洲精品少妇30p| 亚洲欧美日韩国产手机在线 | 国产精品乱码妇女bbbb| 久久只精品国产| 欧美成人性战久久| 久久一夜天堂av一区二区三区| 欧美夫妻性生活| 欧美一级高清片在线观看| 欧美日韩亚洲国产综合| 欧美军同video69gay| 777xxx欧美| 精品日韩在线一区| 国产日韩精品久久久| 久久青草国产手机看片福利盒子| 欧美精品一区二区三区在线播放| 日韩亚洲欧美成人一区| 欧美精品一区二区三区在线| 久久中文娱乐网| 国产精品亲子伦对白| 国产精品国产三级国产普通话蜜臀 | 国产精品妹子av| 国产精品久久久久久亚洲伦| 亚洲欧洲一区二区在线播放| 亚洲欧美激情在线| 亚洲成a人在线观看| 另类成人小视频在线| 国产真实乱偷精品视频免| 国产精品99精品久久免费| a4yy欧美一区二区三区| 日本高清视频一区二区| 欧美挠脚心视频网站| 精品国产sm最大网站免费看| 国产日产欧产精品推荐色| 综合久久给合久久狠狠狠97色| 一区二区三区视频在线看| 婷婷丁香久久五月婷婷| 极品美女销魂一区二区三区| 成人久久18免费网站麻豆| 99久久精品99国产精品 | 久久综合精品国产一区二区三区 | 床上的激情91.| 在线观看亚洲专区| 日韩美女在线视频| 国产精品麻豆欧美日韩ww| 香蕉久久一区二区不卡无毒影院| 国产在线精品一区在线观看麻豆| 99在线精品视频| 日韩一区二区三区精品视频| 亚洲国产精品99久久久久久久久| 一区二区三区欧美| 久久精品国产99| 色乱码一区二区三区88| 日韩欧美久久久| 亚洲视频电影在线| 美女一区二区久久| av一二三不卡影片| 日韩欧美一区电影| 亚洲欧美偷拍三级| 久久电影网站中文字幕| 欧美伊人久久大香线蕉综合69| 久久久久久久免费视频了| 亚洲成人在线免费| www.99精品| 精品国产3级a| 亚洲国产精品精华液网站| 成人爱爱电影网址| 日韩欧美国产系列| 亚洲第一av色| 91一区二区三区在线播放| 欧美精品一区在线观看| 天天亚洲美女在线视频| 99精品1区2区| 26uuu欧美| 日韩黄色小视频| 欧洲国产伦久久久久久久| 久久久久国产精品人| 日本三级亚洲精品| 欧美三级日韩三级| 亚洲精品乱码久久久久久黑人| 国产在线精品免费| 欧美一级理论片| 天天做天天摸天天爽国产一区| 91在线你懂得| 中国av一区二区三区| 国产一区欧美二区| 日韩你懂的在线播放| 午夜电影网一区| 在线观看www91| 亚洲免费高清视频在线| 99久久99久久精品国产片果冻| 国产亚洲综合在线| 国产精品一色哟哟哟| 精品国产一二三区| 激情综合色综合久久综合| 欧美一二三四区在线| 天天色 色综合| 欧美久久久久免费| 视频一区在线视频| 欧美精品久久一区二区三区| 婷婷丁香激情综合| 欧美一级国产精品| 老司机精品视频线观看86 | 国产调教视频一区| 国产福利一区二区| 国产亚洲成aⅴ人片在线观看| 韩国一区二区视频| 久久久五月婷婷| 国产乱码一区二区三区| 国产日韩欧美电影| 不卡一区中文字幕| 一区二区三区中文免费| 在线一区二区三区四区| 午夜精品久久久久久久久久久| 欧美日韩精品欧美日韩精品一| 五月激情综合网| 日韩欧美久久久| 国产精品一级片在线观看| 国产精品久久久久久久裸模| 色综合久久久久综合| 亚洲电影一区二区三区| 91精品国产麻豆国产自产在线 | 欧美日韩午夜在线| 日韩精品一卡二卡三卡四卡无卡| 日韩一区二区免费在线观看| 精品系列免费在线观看| 亚洲国产成人一区二区三区| 日韩一区二区高清| 国产伦精品一区二区三区免费迷 | 欧美精品一区二区三区高清aⅴ| 国模冰冰炮一区二区| 国产色产综合色产在线视频| 99久久精品免费看| 丝袜脚交一区二区| 久久这里只有精品视频网| av不卡在线观看| 日韩成人精品视频| 国产日韩欧美电影| 欧美视频一区二区在线观看| 美腿丝袜亚洲综合| 国产精品久久99| 欧美一区欧美二区| 成人污污视频在线观看| 香蕉影视欧美成人| 国产女同性恋一区二区| 91精品91久久久中77777| 麻豆国产精品官网| 亚洲欧美日韩久久| 欧美成人性战久久| 色伊人久久综合中文字幕| 免费在线一区观看| 国产精品久久久久久久久快鸭 | 日本精品一区二区三区四区的功能| 日产国产高清一区二区三区 | 亚洲成人免费电影| 蜜桃久久精品一区二区| 国产精品全国免费观看高清| 欧美日韩一级大片网址| 成人精品视频一区二区三区| 婷婷丁香激情综合| 亚洲欧美综合色| 精品国产三级a在线观看| 欧美体内she精高潮| 成人在线一区二区三区| 日韩精品一二三| 18成人在线视频| 久久新电视剧免费观看| 欧美日韩黄色一区二区| 一本色道久久综合精品竹菊 | 欧美浪妇xxxx高跟鞋交| 成人动漫精品一区二区|