mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-23 13:20:34 +00:00
8179697: Fix Html5 errors in java.naming, java.logging, jdk.httpserver, jdk.net, jdk.sctp
Reviewed-by: dfuchs
This commit is contained in:
parent
310f127406
commit
2bfca02246
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1887,7 +1887,7 @@ public class LogManager {
|
||||
* The registered {@linkplain #addConfigurationListener configuration
|
||||
* listeners} will be invoked after the configuration is successfully updated.
|
||||
* <br><br>
|
||||
* <table summary="Updating configuration properties">
|
||||
* <table><caption style="display:none">Updating configuration properties</caption>
|
||||
* <tr>
|
||||
* <th>Property</th>
|
||||
* <th>Resulting Behavior</th>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,7 +36,7 @@ import jdk.internal.logger.SurrogateLogger;
|
||||
* format. The summary will typically be 1 or 2 lines.
|
||||
*
|
||||
* <p>
|
||||
* <a name="formatting">
|
||||
* <a id="formatting">
|
||||
* <b>Configuration:</b></a>
|
||||
* The {@code SimpleFormatter} is initialized with the
|
||||
* <a href="../Formatter.html#syntax">format string</a>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -78,7 +78,8 @@ import java.util.Properties;
|
||||
*the string form of a composite name and its corresponding structural form
|
||||
*({@code CompositeName}).
|
||||
*
|
||||
<table border="1" cellpadding=3 summary="examples showing string form of composite name and its corresponding structural form (CompositeName)">
|
||||
<table class="striped"><caption style="display:none">examples showing string
|
||||
form of composite name and its corresponding structural form (CompositeName)</caption>
|
||||
|
||||
<tr>
|
||||
<th>String Name</th>
|
||||
@ -144,7 +145,8 @@ import java.util.Properties;
|
||||
* string forms of two composite names simply involves concatenating
|
||||
* their string forms together.
|
||||
|
||||
<table border="1" cellpadding=3 summary="composition examples showing string names and composite names">
|
||||
<table class="striped"><caption style="display:none">composition examples
|
||||
showing string names and composite names</caption>
|
||||
|
||||
<tr>
|
||||
<th>String Names</th>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -137,7 +137,7 @@ import java.util.Hashtable;
|
||||
* known to protect it.
|
||||
*
|
||||
*<p>
|
||||
*<a name=RESOURCEFILES></a>
|
||||
*<a id=RESOURCEFILES></a>
|
||||
*<h1>Resource Files</h1>
|
||||
*<p>
|
||||
* To simplify the task of setting up the environment
|
||||
@ -184,7 +184,7 @@ import java.util.Hashtable;
|
||||
* {@code jndiprovider.properties}.
|
||||
*
|
||||
* <p>
|
||||
* <a name=LISTPROPS></a>
|
||||
* <a id=LISTPROPS></a>
|
||||
* Certain methods in the JNDI class library make use of the standard
|
||||
* JNDI properties that specify lists of JNDI factories:
|
||||
* <ul>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,7 +36,7 @@ import com.sun.naming.internal.ResourceManager;
|
||||
* The initial context implements the Context interface and
|
||||
* provides the starting point for resolution of names.
|
||||
*<p>
|
||||
* <a name=ENVIRONMENT></a>
|
||||
* <a id=ENVIRONMENT></a>
|
||||
* When the initial context is constructed, its environment
|
||||
* is initialized with properties defined in the environment parameter
|
||||
* passed to the constructor, and in any
|
||||
|
||||
@ -45,7 +45,7 @@ This package allows applications to retrieve and update attributes
|
||||
associated with objects stored in a directory, and to search for
|
||||
objects using specified attributes.
|
||||
|
||||
<h4>The Directory Context</h4>
|
||||
<h3>The Directory Context</h3>
|
||||
|
||||
The <code>DirContext</code>
|
||||
interface represents a <em>directory context</em>.
|
||||
|
||||
@ -40,7 +40,7 @@ independent of any specific naming or directory service
|
||||
implementation. Thus a variety of services--new, emerging, and
|
||||
already deployed ones--can be accessed in a common way.
|
||||
|
||||
<h4>Naming Events</h4>
|
||||
<h3>Naming Events</h3>
|
||||
<p>
|
||||
This package defines a <code>NamingEvent</code> class to represent an event
|
||||
that is generated by a naming/directory service.
|
||||
@ -78,7 +78,7 @@ class ChangeHandler implements ObjectChangeListener {
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<a name=THREADING></a>
|
||||
<a id=THREADING></a>
|
||||
<h4>Threading Issues</h4>
|
||||
|
||||
When an event is dispatched to a listener, the listener method (such
|
||||
|
||||
@ -48,7 +48,7 @@ The core interface in this package is <code>LdapContext</code>, which defines
|
||||
methods on a context for performing extended operations and handling
|
||||
controls.
|
||||
|
||||
<h4>Extended Operations</h4>
|
||||
<h3>Extended Operations</h3>
|
||||
<p>
|
||||
This package defines the interface <code>ExtendedRequest</code>
|
||||
to represent the argument to an extended operation,
|
||||
@ -125,7 +125,7 @@ public class GetTimeResponse() implements ExtendedResponse {
|
||||
}
|
||||
</pre></blockquote>
|
||||
|
||||
<h4>Controls</h4>
|
||||
<h3>Controls</h3>
|
||||
|
||||
This package defines the interface <code>Control</code> to represent an LDAPv3
|
||||
control. It can be a control that is sent to an LDAP server
|
||||
@ -203,7 +203,7 @@ Context ctx = ectx.createSubsubcontext("cn=newobj");
|
||||
Control[] respCtls = ectx.getResponseControls();
|
||||
if (respCtls != null) {
|
||||
// Find the one we want
|
||||
for (int i = 0; i < respCtls; i++) {
|
||||
for (int i = 0; i < respCtls; i++) {
|
||||
if(respCtls[i] instanceof ChangeIDControl) {
|
||||
ChangeIDControl cctl = (ChangeIDControl)respCtls[i];
|
||||
System.out.println(cctl.getChangeID());
|
||||
|
||||
@ -40,7 +40,7 @@ implementation. Thus a variety of services--new, emerging, and
|
||||
already deployed ones--can be accessed in a common way.
|
||||
|
||||
|
||||
<h4>Context</h4>
|
||||
<h3>Context</h3>
|
||||
<p>
|
||||
This package defines the notion of a <em>context</em>, represented
|
||||
by the <code>Context</code> interface.
|
||||
@ -63,7 +63,7 @@ printer.print(report);
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<h4>Names</h4>
|
||||
<h3>Names</h3>
|
||||
<p>
|
||||
Every naming method in the <code>Context</code>
|
||||
interface has two
|
||||
@ -82,7 +82,7 @@ The overloads that accept string names are likely to be more useful
|
||||
for simple applications, such as those that simply read in a name
|
||||
and look up the corresponding object.
|
||||
|
||||
<h4>Bindings</h4>
|
||||
<h3>Bindings</h3>
|
||||
|
||||
The <code>Binding</code> class represents a name-to-object binding.
|
||||
It is a tuple containing the name of the bound object,
|
||||
@ -95,7 +95,7 @@ The <code>NameClassPair</code> is useful when you only want
|
||||
information about the object's class and do not want to
|
||||
pay the extra cost of getting the object.
|
||||
|
||||
<h4>References</h4>
|
||||
<h3>References</h3>
|
||||
Objects are stored in naming and directory services in different ways.
|
||||
If an object store supports storing Java objects,
|
||||
it might support storing an object in its serialized form.
|
||||
@ -112,7 +112,7 @@ JNDI clients have the illusion that what
|
||||
is stored in the directory are Java objects.
|
||||
|
||||
|
||||
<h4>The Initial Context</h4>
|
||||
<h3>The Initial Context</h3>
|
||||
|
||||
In JNDI, all naming and directory operations are performed relative
|
||||
to a context. There are no absolute roots.
|
||||
@ -122,7 +122,7 @@ which provides a starting point for naming and directory operations.
|
||||
Once you have an initial context, you can use it to
|
||||
look up other contexts and objects.
|
||||
|
||||
<h4>Exceptions</h4>
|
||||
<h3>Exceptions</h3>
|
||||
|
||||
JNDI defines a class hierarchy for exceptions that can be thrown in
|
||||
the course of performing naming and directory operations. The root of
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -136,7 +136,7 @@ public interface ObjectFactory {
|
||||
*
|
||||
* <p>
|
||||
* <b>Name and Context Parameters.</b>
|
||||
* <a name=NAMECTX></a>
|
||||
* <a id=NAMECTX></a>
|
||||
*
|
||||
* The {@code name} and {@code nameCtx} parameters may
|
||||
* optionally be used to specify the name of the object being created.
|
||||
|
||||
@ -47,7 +47,7 @@ through which JNDI applications access different naming and
|
||||
directory services.
|
||||
|
||||
|
||||
<h4>Plug-in Architecture</h4>
|
||||
<h3>Plug-in Architecture</h3>
|
||||
|
||||
The service provider package allows different implementations to be plugged in
|
||||
dynamically.
|
||||
@ -56,7 +56,7 @@ These different implementations include those for the
|
||||
and implementations for contexts that can be reached
|
||||
from the initial context.
|
||||
|
||||
<h4>Java Object Support</h4>
|
||||
<h3>Java Object Support</h3>
|
||||
|
||||
The service provider package provides support
|
||||
for implementors of the
|
||||
@ -68,7 +68,7 @@ it is natural for you to expect to get
|
||||
back a printer object on which to operate.
|
||||
|
||||
|
||||
<h4>Multiple Naming Systems (Federation)</h4>
|
||||
<h3>Multiple Naming Systems (Federation)</h3>
|
||||
|
||||
JNDI operations allow applications to supply names that span multiple
|
||||
naming systems. So in the process of completing
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,7 +51,7 @@ import com.sun.net.httpserver.spi.HttpServerProvider;
|
||||
* {@link java.util.concurrent.Executor} object. If none is provided a default
|
||||
* implementation is used.
|
||||
* <p>
|
||||
* <a name="mapping_description"></a>
|
||||
* <a id="mapping_description"></a>
|
||||
* <b>Mapping request URIs to HttpContext paths</b><p>
|
||||
* When a HTTP request is received,
|
||||
* the appropriate HttpContext (and handler) is located by finding the context
|
||||
@ -59,7 +59,7 @@ import com.sun.net.httpserver.spi.HttpServerProvider;
|
||||
* Paths are matched literally, which means that the strings are compared
|
||||
* case sensitively, and with no conversion to or from any encoded forms.
|
||||
* For example. Given a HttpServer with the following HttpContexts configured.
|
||||
* <table>
|
||||
* <table><caption style="display:none">description</caption>
|
||||
* <tr><td><i>Context</i></td><td><i>Context path</i></td></tr>
|
||||
* <tr><td>ctx1</td><td>"/"</td></tr>
|
||||
* <tr><td>ctx2</td><td>"/apps/"</td></tr>
|
||||
@ -68,7 +68,7 @@ import com.sun.net.httpserver.spi.HttpServerProvider;
|
||||
* <p>
|
||||
* the following table shows some request URIs and which, if any context they would
|
||||
* match with.
|
||||
* <table>
|
||||
* <table><caption style="display:none">description</caption>
|
||||
* <tr><td><i>Request URI</i></td><td><i>Matches context</i></td></tr>
|
||||
* <tr><td>"http://foo.com/apps/foo/bar"</td><td>ctx3</td></tr>
|
||||
* <tr><td>"http://foo.com/apps/Foo/bar"</td><td>no match, wrong case</td></tr>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -41,7 +41,7 @@ import javax.net.ssl.*;
|
||||
* the {@link #configure(HttpsParameters)} method in order to change
|
||||
* the default configuration.
|
||||
* <p>
|
||||
* The following <a name="example">example</a> shows how this may be done:
|
||||
* The following <a id="example">example</a> shows how this may be done:
|
||||
*
|
||||
* <blockquote><pre>
|
||||
* SSLContext sslContext = SSLContext.getInstance (....);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,8 +34,8 @@ import java.security.BasicPermission;
|
||||
* <p>
|
||||
* The following targets are defined:
|
||||
*
|
||||
* <table border=1 cellpadding=5 summary="permission target name,
|
||||
* what the target allows,and associated risks">
|
||||
* <table class="striped"><caption style="display:none">permission target name,
|
||||
* what the target allows,and associated risks</caption>
|
||||
* <tr>
|
||||
* <th>Permission Target Name</th>
|
||||
* <th>What the Permission Allows</th>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -59,7 +59,7 @@ import java.nio.channels.SelectionKey;
|
||||
* {@link #setOption(SctpSocketOption,Object) setOption} method. An SCTP
|
||||
* channel support the following options:
|
||||
* <blockquote>
|
||||
* <table border summary="Socket options">
|
||||
* <table class="striped"><caption style="display:none">Socket options</caption>
|
||||
* <tr>
|
||||
* <th>Option Name</th>
|
||||
* <th>Description</th>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -63,7 +63,7 @@ import java.nio.channels.SelectionKey;
|
||||
* {@link #setOption(SctpSocketOption,Object,Association) setOption} method. An
|
||||
* {@code SctpMultiChannel} supports the following options:
|
||||
* <blockquote>
|
||||
* <table border summary="Socket options">
|
||||
* <table class="striped"><caption style="display:none">Socket options</caption>
|
||||
* <tr>
|
||||
* <th>Option Name</th>
|
||||
* <th>Description</th>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -47,7 +47,7 @@ import java.nio.channels.spi.AbstractSelectableChannel;
|
||||
* {@link #setOption(SctpSocketOption,Object) setOption} method. SCTP server socket
|
||||
* channels support the following options:
|
||||
* <blockquote>
|
||||
* <table border summary="Socket options">
|
||||
* <table><caption style="display:none">Socket options</caption>
|
||||
* <tr>
|
||||
* <th>Option Name</th>
|
||||
* <th>Description</th>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user