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

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

?? serve.java

?? 用java開發的
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
    /// Returns the MIME type of the specified file.    // @param file file name whose MIME type is required	public String getMimeType( String file ) { 		   file = file.toUpperCase();		           if (file.endsWith(".HTML")        || file.endsWith(".HTM")) return "text/html";        if (file.endsWith(".TXT")) return "text/plain";        if (file.endsWith(".XML")) return "text/xml";        if (file.endsWith(".CSS")) return "text/css";        if (file.endsWith(".SGML")        || file.endsWith(".SGM")) return "text/x-sgml";        // Image        if (file.endsWith(".GIF")) return "image/gif";        if (file.endsWith(".JPG")        || file.endsWith(".JPEG")        || file.endsWith(".JPE")) return "image/jpeg";        if (file.endsWith(".PNG")) return "image/png";        if (file.endsWith(".TIF")        || file.endsWith(".TIFF")) return "image/tiff";        if (file.endsWith(".RGB")) return "image/x-rgb";        if (file.endsWith(".XPM")) return "image/x-xpixmap";        if (file.endsWith(".XBM")) return "image/x-xbitmap";        if (file.endsWith(".SVG")) return "image/svg-xml ";        if (file.endsWith(".SVGZ")) return "image/svg-xml ";        // Audio        if (file.endsWith(".AU")        || file.endsWith(".SND")) return "audio/basic";        if (file.endsWith(".MID")        || file.endsWith(".MIDI")        || file.endsWith(".RMI")        || file.endsWith(".KAR")) return "audio/mid";        if (file.endsWith(".MPGA")        || file.endsWith(".MP2")        || file.endsWith(".MP3")) return "audio/mpeg";        if (file.endsWith(".WAV")) return "audio/wav";        if (file.endsWith(".AIFF")        || file.endsWith(".AIFC")) return "audio/aiff";        if (file.endsWith(".AIF")) return "audio/x-aiff";        if (file.endsWith(".RA")) return "audio/x-realaudio";        if (file.endsWith(".RPM")) return "audio/x-pn-realaudio-plugin";        if (file.endsWith(".RAM")) return "audio/x-pn-realaudio";        if (file.endsWith(".SD2")) return "audio/x-sd2";        // Application        if (file.endsWith(".BIN")        || file.endsWith(".DMS")        || file.endsWith(".LHA")        || file.endsWith(".LZH")        || file.endsWith(".EXE")        || file.endsWith(".CLASS")) return "application/octet-stream";        if (file.endsWith(".HQX")) return "application/mac-binhex40";        if (file.endsWith(".PS")        || file.endsWith(".AI")        || file.endsWith(".EPS")) return "application/postscript";        if (file.endsWith(".PDF")) return "application/pdf";        if (file.endsWith(".RTF")) return "application/rtf";        if (file.endsWith(".DOC")) return "application/msword";        if (file.endsWith(".PPT")) return "application/powerpoint";        if (file.endsWith(".FIF")) return "application/fractals";        if (file.endsWith(".P7C")) return "application/pkcs7-mime";        // Application/x        if (file.endsWith(".JS")) return "application/x-javascript";        if (file.endsWith(".Z")) return "application/x-compress";        if (file.endsWith(".GZ")) return "application/x-gzip";        if (file.endsWith(".TAR")) return "application/x-tar";        if (file.endsWith(".TGZ")) return "application/x-compressed";        if (file.endsWith(".ZIP")) return "application/x-zip-compressed";        if (file.endsWith(".DIR")        || file.endsWith(".DCR")        || file.endsWith(".DXR")) return "application/x-director";        if (file.endsWith(".DVI")) return "application/x-dvi";        if (file.endsWith(".TEX")) return "application/x-tex";        if (file.endsWith(".LATEX")) return "application/x-latex";        if (file.endsWith(".TCL")) return "application/x-tcl";        if (file.endsWith(".CER")        || file.endsWith(".CRT")        || file.endsWith(".DER")) return "application/x-x509-ca-cert";        // Video        if (file.endsWith(".MPG")        || file.endsWith(".MPE")        || file.endsWith(".MPEG")) return "video/mpeg";        if (file.endsWith(".QT")        || file.endsWith(".MOV")) return "video/quicktime";        if (file.endsWith(".AVI")) return "video/x-msvideo";        if (file.endsWith(".MOVIE")) return "video/x-sgi-movie";        // Chemical        if (file.endsWith(".PDB")        || file.endsWith(".XYZ")) return "chemical/x-pdb";        // X-        if (file.endsWith(".ICE")) return "x-conference/x-cooltalk";        if (file.endsWith(".WRL")        || file.endsWith(".VRML")) return "x-world/x-vrml";        if (file.endsWith(".WML")) return  "text/vnd.wap.wml" ;        if (file.endsWith(".WMLC")) return  "application/vnd.wap.wmlc" ;        if (file.endsWith(".WMLS")) return  "text/vnd.wap.wmlscript" ;        if (file.endsWith(".WMLSC")) return  "application/vnd.wap.wmlscriptc" ;        if (file.endsWith(".WBMP")) return  "image/vnd.wap.wbmp" ;        return null;    }    /// Returns the name and version of the web server under which the servlet    // is running.    // Same as the CGI variable SERVER_SOFTWARE.    public String getServerInfo()    {        return Serve.Identification.serverName + " " + Serve.Identification.serverVersion +            " (" + Serve.Identification.serverUrl + ")";    }        /// Returns the value of the named attribute of the network service, or    // null if the attribute does not exist.  This method allows access to    // additional information about the service, not already provided by    // the other methods in this interface.    public Object getAttribute( String name )    {        // This server does not support attributes.        return attributes.get(name);    }        /////////////////// JSDK 2.1 extensions //////////////////////////    public void removeAttribute(String name)    {        attributes.remove(name);    }        public void setAttribute(String name, Object object)    {        attributes.put(name, object);    }        public Enumeration getAttributeNames()    {        return attributes.keys();    }        public ServletContext getContext(String uripath)    {        return this; // only root context supported    }        public int getMajorVersion()    {        return 2; // support 2.x    }        public int getMinorVersion()    {        return 3; // support 2.3    }    	// 2.3		/**	 * Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument. Paths indicating subdirectory paths end with a '/'. The returned paths are all relative to the root	 *  of the web application and have a leading '/'. For example, for a web application containing	 * <p>	 * /welcome.html <br>	 * /catalog/index.html<br>	 * /catalog/products.html<br>	 * /catalog/offers/books.html<br>	 * /catalog/offers/music.html<br>	 * /customer/login.jsp<br>	 * /WEB-INF/web.xml<br>	 * /WEB-INF/classes/com.acme.OrderServlet.class,	 * <p>	 * getResourcePaths("/") returns {"/welcome.html", "/catalog/", "/customer/", "/WEB-INF/"}<br>	 * getResourcePaths("/catalog/") returns {"/catalog/index.html", "/catalog/products.html", "/catalog/offers/"}.	 * <p>	 * 	 * @param the - partial path used to match the resources, which must start with a /	 * @return a Set containing the directory listing, or null if there are no resources in the web application whose path begins with the supplied path.	 * @since Servlet 2.3 	 * 	 */	public java.util.Set getResourcePaths(java.lang.String path) {		// TODO: implement		return null;	}		/**	 * Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element.     * @return The name of the web application or null if no name has been declared in the deployment descriptor.	 *	 * @since Servlet 2.3 	 */	public java.lang.String getServletContextName() {		return null;//"ROOT";	}		// only root relative in this implementation    public URL getResource(String path) throws MalformedURLException    {		return new URL("http", hostName, port, path);    }        public InputStream getResourceAsStream(String path)    {        return null; // we don't provide resources in this way    }    	public RequestDispatcher getRequestDispatcher(String urlpath)	{		return this; // we don't provide resource dispatching in this way	}		// no way to specify parameters for context	public String getInitParameter(String param) {		return null;	}		public Enumeration getInitParameterNames() {		return null;	}		public RequestDispatcher getNamedDispatcher(String name) {		return this;	}	synchronized String generateSessionId() {		return "-"+System.currentTimeMillis()+'-'+(uniqer++)+'-'+Math.round(Math.random()*1000);	}    	public void forward(ServletRequest _request, ServletResponse _response)		throws ServletException, java.io.IOException {	}		public void include(ServletRequest _request, ServletResponse _response)             throws ServletException, java.io.IOException {	}	    final static class Identification    {        public static final String serverName = "Rogatkin's JWS based on Acme.Serve";        public static final String serverVersion = "$Revision: 1.1 $";        public static final String serverUrl = "http://tjws.sourceforge.net";                /// Write a standard-format HTML address for this server.        public static void writeAddress( OutputStream o ) throws IOException        {            PrintStream p = new PrintStream( o );            p.println(                "<ADDRESS><A HREF=\"" + serverUrl + "\">" +                serverName + " " + serverVersion + "</A></ADDRESS>" );        }        public static void writeAddress( StringBuffer sb ) throws IOException        {            sb.append(                "<ADDRESS><A HREF=\"" + serverUrl + "\">" +                serverName + " " + serverVersion + "</A></ADDRESS>" );        }    }}class ServeConfig implements ServletConfig{        private ServletContext context;    private Hashtable init_params;	private String servletName;        public ServeConfig( ServletContext context )    {        this(context, null, "undefined");    }        public ServeConfig( ServletContext context, Hashtable initParams, String servletName )    {        this.context = context;        this.init_params = initParams;		this.servletName = servletName;    }        // Methods from ServletConfig.        /// Returns the context for the servlet.    public ServletContext getServletContext()    {        return context;    }        /// Gets an initialization parameter of the servlet.    // @param name the parameter name    public String getInitParameter( String name )    {        // This server supports servlet init params. :)        if (init_params != null)            return (String)init_params.get(name);        return null;    }        /// Gets the names of the initialization parameters of the servlet.    // @param name the parameter name    public Enumeration getInitParameterNames()    {        // This server does:) support servlet init params.        if (init_params != null)            return init_params.keys();        return new Vector().elements();    }	// 2.2	public String getServletName() {		return servletName;	}}////////////////////////////////////////////////////////////////////////** * provides request/response */class ServeConnection implements Runnable, HttpServletRequest, HttpServletResponse{        private Socket socket;    private Serve serve;        private ServletInputStream in;    private ServletOutputStream out;        private Hashtable formParameters;    private Hashtable attributes =  new Hashtable();        public final static String WWWFORMURLENCODE = "application/x-www-form-urlencoded";    public final static String TRANSFERENCODING="Transfer-Encoding";      public final static String CHUNKED = "chunked";     public final static String CONTENTLENGTH = "Content-Length";    public final static String CONTENTTYPE = "Content-Type";    public final static String SETCOOKIE = "Set-Cookie";	public final static String COOKIE = "Cookie";		public final static String SESSION_COOKIE_NAME = "JSESSIONID";// URL rewriting http://www.myserver.com/catalog/index.html;jsessionid=mysession1928// like: http://www.sun.com/2001-0227/sunblade/;$sessionid$AD5RQ0IAADJAZAMTA1LU5YQ        private String reqMethod; // == null by default    private String reqUriPath;    private String reqProtocol;	private String reqCharEncoding;    private String remoteUser;    private String authType;    private boolean oneOne;     // HTTP/1.1 or better    private boolean reqMime;    String reqQuery = null;    private Vector reqHeaderNames = new Vector();    private Vector reqHeaderValues = new Vector();	private Locale locale; // = java.util.Locale.getDefault();    private int uriLen;    private static final Hashtable EMPTYHASHTABLE = new Hashtable();		private Vector outCookies;	private Vector inCookies;		private String sessionCookieValue;        /// Constructor.    public ServeConnection( Socket socket, Serve serve )    {        // Save arguments.        this.socket = socket;        this.serve = serve;                // Start a separate thread to read and handle the request.        Thread thread = new Thread( this, "Request handler" );        thread.start();    }            // Methods from Runnable.    public void run()    {        try        {            // Get the streams.            in = new ServeInputStream( socket.getInputStream() );            out = new ServeOutputStream( socket.getOutputStream(), this );        }        catch ( IOException e )        {            problem( "Getting streams: " + e.getMessage(), SC_BAD_REQUEST );        }                parseRequest();        

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区免费电影| 欧美一区二区三区四区视频| 国产成人精品三级| 免费在线成人网| 日本不卡在线视频| 美女脱光内衣内裤视频久久网站 | 亚洲人一二三区| 国产精品免费av| 国产精品入口麻豆原神| 亚洲国产精品精华液2区45| 国产欧美日产一区| 国产精品视频一二三区| 国产精品国产a| 亚洲日穴在线视频| 亚洲综合免费观看高清在线观看| 亚洲视频小说图片| 亚洲一区免费在线观看| 五月综合激情日本mⅴ| 日本亚洲一区二区| 极品销魂美女一区二区三区| 国产传媒欧美日韩成人| 成人av在线观| 色婷婷亚洲精品| 欧美日韩大陆在线| 久久综合99re88久久爱| 久久精品日韩一区二区三区| 国产精品久久久久久户外露出| 中文字幕中文字幕一区二区| 一区二区三区在线视频免费| 天天av天天翘天天综合网| 久久狠狠亚洲综合| 成人永久看片免费视频天堂| 色婷婷精品久久二区二区蜜臀av | 中文字幕制服丝袜一区二区三区| 亚洲欧美韩国综合色| 视频一区视频二区中文| 国产在线精品一区在线观看麻豆| 成人精品视频一区二区三区尤物| 色婷婷综合久久久| 欧美一区二区在线免费播放| 中文字幕第一区二区| 亚洲高清不卡在线| 国产美女精品在线| 91麻豆国产精品久久| 欧美疯狂性受xxxxx喷水图片| 2021国产精品久久精品| 亚洲精品国产a| 免费xxxx性欧美18vr| 成人av资源站| 欧美另类高清zo欧美| 国产日韩欧美制服另类| 亚洲国产日产av| 国产乱码精品一品二品| 欧美日韩一区不卡| 久久久久久久综合| 亚洲午夜电影在线| 国产成人午夜99999| 欧美日韩情趣电影| 国产免费成人在线视频| 男人的天堂久久精品| 99久久精品国产导航| 精品对白一区国产伦| 一区二区免费在线| 国产成人免费在线视频| 在线电影院国产精品| 国产精品乱码一区二区三区软件| 青青草原综合久久大伊人精品| thepron国产精品| 精品国产伦一区二区三区观看方式| 亚洲美女免费视频| 国产精品小仙女| 日韩欧美一二区| 亚洲最大成人网4388xx| 成人一级片网址| 欧美videos大乳护士334| 亚洲一区二区欧美日韩| 91在线观看视频| 日本一区二区成人| 国内精品国产成人国产三级粉色| 欧美伦理电影网| 一区二区三区成人在线视频| 不卡欧美aaaaa| 久久精品欧美一区二区三区不卡| 美女在线视频一区| 91精品在线一区二区| 亚洲免费观看高清完整版在线观看熊| 久久福利视频一区二区| 91久久久免费一区二区| 久久久精品人体av艺术| 狠狠色丁香婷婷综合| 欧美日韩久久久一区| 国产精品福利在线播放| 国内精品不卡在线| 欧美日本精品一区二区三区| 中文字幕日本不卡| 国产精品成人在线观看 | 欧美精品18+| 成人免费小视频| 国产一区二区在线视频| 欧美色精品在线视频| 国产精品久久久久久久久动漫 | 99视频精品免费视频| 精品国产一区二区精华| 午夜电影久久久| 在线这里只有精品| 中文字幕亚洲一区二区va在线| 国精产品一区一区三区mba桃花| 欧美人成免费网站| 伊人婷婷欧美激情| 本田岬高潮一区二区三区| 久久亚洲影视婷婷| 久久99精品国产91久久来源| 欧美综合天天夜夜久久| 一区二区高清在线| 91视频.com| 亚洲丝袜自拍清纯另类| 成人av中文字幕| 国产欧美一区二区三区沐欲| 韩国女主播成人在线观看| 欧洲精品视频在线观看| 亚洲aaa精品| 欧美日韩一区二区在线观看| 亚洲国产欧美在线| 欧美日产国产精品| 日韩高清国产一区在线| 欧美在线你懂得| 免费人成黄页网站在线一区二区 | 精品日韩欧美一区二区| 国产精品资源在线| 久久久久久久久免费| 国内外成人在线| 久久久九九九九| 国产99久久久国产精品免费看 | 国产精品一品二品| 日本一二三四高清不卡| 93久久精品日日躁夜夜躁欧美| 中文字幕制服丝袜成人av| 欧美日韩中文另类| 亚洲电影在线免费观看| 欧美精品免费视频| 蜜桃av一区二区| 精品国产91乱码一区二区三区| 国产精品影视在线| 国产欧美日韩亚州综合| 欧美系列一区二区| 免费欧美高清视频| 国产欧美精品在线观看| 91在线视频网址| 亚洲午夜精品网| 日韩欧美色综合网站| 色狠狠色狠狠综合| 蜜臀国产一区二区三区在线播放 | 久久久高清一区二区三区| 高清国产午夜精品久久久久久| 亚洲不卡av一区二区三区| 欧美一区二区三区播放老司机| 久久精品国产色蜜蜜麻豆| 亚洲国产精品传媒在线观看| 在线免费av一区| 日韩极品在线观看| 成人免费视频在线观看| 91精品综合久久久久久| 国产成人午夜视频| 亚洲国产一区二区视频| 精品国产电影一区二区| 91麻豆国产福利在线观看| 美腿丝袜亚洲一区| 亚洲欧洲成人自拍| 日韩三级在线观看| av日韩在线网站| 亚洲福利视频一区| ㊣最新国产の精品bt伙计久久| 91精品婷婷国产综合久久竹菊| 国产1区2区3区精品美女| 亚洲午夜久久久久中文字幕久| 精品国产乱码久久久久久影片| 99久免费精品视频在线观看 | 欧美日韩国产综合草草| 国产福利91精品一区| 亚洲国产欧美一区二区三区丁香婷| www国产成人| 欧美日韩亚洲综合一区二区三区| 91蝌蚪porny九色| 精彩视频一区二区三区| 一区二区欧美视频| 国产清纯美女被跳蛋高潮一区二区久久w | 免费精品99久久国产综合精品| 日本一区二区免费在线观看视频| 欧美猛男男办公室激情| 成人av免费观看| 蜜臀a∨国产成人精品| 一区二区三区四区在线播放| 亚洲精品在线观看视频| 欧美肥妇毛茸茸| 欧美日韩成人综合天天影院 | 爽好久久久欧美精品| 最新不卡av在线| 久久综合九色欧美综合狠狠| 精品视频1区2区| 色先锋aa成人|