Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.httpserver.jmod - HTTP Server Module
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module.
JDK 11 HTTP Server module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.httpserver.jmod.
JDK 11 HTTP Server module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 HTTP Server module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.httpserver.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/net/httpserver/Filter.java
/* * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.net.httpserver; import java.io.IOException; import java.util.*; /** * A filter used to pre- and post-process incoming requests. Pre-processing occurs * before the application's exchange handler is invoked, and post-processing * occurs after the exchange handler returns. Filters * are organised in chains, and are associated with HttpContext instances. * <p> * Each Filter in the chain, invokes the next filter within its own * doFilter() implementation. The final Filter in the chain invokes the applications * exchange handler. * @since 1.6 */ public abstract class Filter { protected Filter () {} /** * a chain of filters associated with a HttpServer. * Each filter in the chain is given one of these * so it can invoke the next filter in the chain */ public static class Chain { /* the last element in the chain must invoke the users * handler */ private ListIterator<Filter> iter; private HttpHandler handler; public Chain (List<Filter> filters, HttpHandler handler) { iter = filters.listIterator(); this.handler = handler; } /** * calls the next filter in the chain, or else * the users exchange handler, if this is the * final filter in the chain. The Filter may decide * to terminate the chain, by not calling this method. * In this case, the filter <b>must</b> send the * response to the request, because the application's * exchange handler will not be invoked. * @param exchange the HttpExchange * @throws IOException let exceptions pass up the stack * @throws NullPointerException if exchange is {@code null} */ public void doFilter (HttpExchange exchange) throws IOException { if (!iter.hasNext()) { handler.handle (exchange); } else { Filter f = iter.next(); f.doFilter (exchange, this); } } } /** * Asks this filter to pre/post-process the given exchange. The filter * can: * <ul><li>examine or modify the request headers</li> * <li>filter the request body or the response body, by creating suitable * filter streams and calling * {@link HttpExchange#setStreams(InputStream,OutputStream)}</li> * <li>set attribute Objects in the exchange, which other filters or the * exchange handler can access.</li> * <li>decide to either<ol> * <li>invoke the next filter in the chain, by calling * {@link Filter.Chain#doFilter(HttpExchange)}</li> * <li>terminate the chain of invocation, by <b>not</b> calling * {@link Filter.Chain#doFilter(HttpExchange)}</li></ol> * <li>if option 1. above taken, then when doFilter() returns all subsequent * filters in the Chain have been called, and the response headers can be * examined or modified.</li> * <li>if option 2. above taken, then this Filter must use the HttpExchange * to send back an appropriate response</li></ul> * * @param exchange the {@code HttpExchange} to be filtered. * @param chain the Chain which allows the next filter to be invoked. * @throws IOException may be thrown by any filter module, and if * caught, must be rethrown again. * @throws NullPointerException if either exchange or chain are {@code null} */ public abstract void doFilter (HttpExchange exchange, Chain chain) throws IOException; /** * returns a short description of this Filter * @return a string describing the Filter */ public abstract String description (); }
⏎ com/sun/net/httpserver/Filter.java
Or download all of them as a single archive file:
File name: jdk.httpserver-11.0.1-src.zip File size: 66350 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.internal.ed.jmod - Internal Editor Module
2020-02-29, 16678👍, 0💬
Popular Posts:
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
What Is js.jar in Rhino JavaScript 1.7R5? js.jar in Rhino JavaScript 1.7R5 is the JAR file for Rhino...
How to download and install Apache XMLBeans Source Package? The source package contains Java source ...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...