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/HttpContext.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.net.*;
import java.io.*;
import java.util.*;

/**
 * HttpContext represents a mapping between the root URI path of an application
 * to a {@link HttpHandler} which is invoked to handle requests destined
 * for that path on the associated HttpServer or HttpsServer.
 * <p>
 * HttpContext instances are created by the create methods in HttpServer
 * and HttpsServer
 * <p>
 * A chain of {@link Filter} objects can be added to a HttpContext. All exchanges processed by the
 * context can be pre- and post-processed by each Filter in the chain.
 * @since 1.6
 */
public abstract class HttpContext {

    protected HttpContext () {
    }

    /**
     * returns the handler for this context
     * @return the HttpHandler for this context
     */
    public abstract HttpHandler getHandler () ;

    /**
     * Sets the handler for this context, if not already set.
     * @param h the handler to set for this context
     * @throws IllegalArgumentException if this context's handler is already set.
     * @throws NullPointerException if handler is <code>null</code>
     */
    public abstract void setHandler (HttpHandler h) ;

    /**
     * returns the path this context was created with
     * @return this context's path
     */
    public abstract String getPath() ;

    /**
     * returns the server this context was created with
     * @return this context's server
     */
    public abstract HttpServer getServer () ;

    /**
     * returns a mutable Map, which can be used to pass
     * configuration and other data to Filter modules
     * and to the context's exchange handler.
     * <p>
     * Every attribute stored in this Map will be visible to
     * every HttpExchange processed by this context
     */
    public abstract Map<String,Object> getAttributes() ;

    /**
     * returns this context's list of Filters. This is the
     * actual list used by the server when dispatching requests
     * so modifications to this list immediately affect the
     * the handling of exchanges.
     */
    public abstract List<Filter> getFilters();

    /**
     * Sets the Authenticator for this HttpContext. Once an authenticator
     * is establised on a context, all client requests must be
     * authenticated, and the given object will be invoked to validate each
     * request. Each call to this method replaces any previous value set.
     * @param auth the authenticator to set. If <code>null</code> then any
     *         previously set authenticator is removed,
     *         and client authentication will no longer be required.
     * @return the previous Authenticator, if any set, or <code>null</code>
     *         otherwise.
     */
    public abstract Authenticator setAuthenticator (Authenticator auth);

    /**
     * Returns the currently set Authenticator for this context
     * if one exists.
     * @return this HttpContext's Authenticator, or <code>null</code>
     *         if none is set.
     */
    public abstract Authenticator getAuthenticator ();
}

com/sun/net/httpserver/HttpContext.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

JDK 11 jdk.hotspot.agent.jmod - Hotspot Agent Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-02-29, 17156👍, 0💬