8186156: Fix a11y and HTML issues in java.net and javax.net packages

Reviewed-by: lancea, mchung
This commit is contained in:
Jonathan Gibbons 2017-08-14 13:54:10 -07:00
parent 34afeced21
commit 0f6e2890e7
8 changed files with 68 additions and 78 deletions

View File

@ -72,10 +72,13 @@ import sun.net.util.IPAddressUtil;
* *
* <h3> Address types </h3> * <h3> Address types </h3>
* *
* <blockquote><table class="borderless"> * <table class="striped" style="margin-left:2em">
* <caption style="display:none">Description of unicast and multicast address types</caption> * <caption style="display:none">Description of unicast and multicast address types</caption>
* <thead>
* <tr><th scope="col">Address Type</th><th scope="col">Description</th></tr>
* </thead>
* <tbody> * <tbody>
* <tr><th style="vertical-align:top"><i>unicast</i></th> * <tr><th scope="row" style="vertical-align:top">unicast</th>
* <td>An identifier for a single interface. A packet sent to * <td>An identifier for a single interface. A packet sent to
* a unicast address is delivered to the interface identified by * a unicast address is delivered to the interface identified by
* that address. * that address.
@ -94,12 +97,12 @@ import sun.net.util.IPAddressUtil;
* IP address loops around and becomes IP input on the local * IP address loops around and becomes IP input on the local
* host. This address is often used when testing a * host. This address is often used when testing a
* client.</td></tr> * client.</td></tr>
* <tr><th style="vertical-align:top"><i>multicast</i></th> * <tr><th scope="row" style="vertical-align:top">multicast</th>
* <td>An identifier for a set of interfaces (typically belonging * <td>An identifier for a set of interfaces (typically belonging
* to different nodes). A packet sent to a multicast address is * to different nodes). A packet sent to a multicast address is
* delivered to all interfaces identified by that address.</td></tr> * delivered to all interfaces identified by that address.</td></tr>
* </tbody> * </tbody>
* </table></blockquote> * </table>
* *
* <h4> IP address scope </h4> * <h4> IP address scope </h4>
* *
@ -163,8 +166,7 @@ import sun.net.util.IPAddressUtil;
* <p> Two Java security properties control the TTL values used for * <p> Two Java security properties control the TTL values used for
* positive and negative host name resolution caching: * positive and negative host name resolution caching:
* *
* <blockquote> * <dl style="margin-left:2em">
* <dl>
* <dt><b>networkaddress.cache.ttl</b></dt> * <dt><b>networkaddress.cache.ttl</b></dt>
* <dd>Indicates the caching policy for successful name lookups from * <dd>Indicates the caching policy for successful name lookups from
* the name service. The value is specified as an integer to indicate * the name service. The value is specified as an integer to indicate
@ -183,7 +185,6 @@ import sun.net.util.IPAddressUtil;
* A value of -1 indicates "cache forever". * A value of -1 indicates "cache forever".
* </dd> * </dd>
* </dl> * </dl>
* </blockquote>
* *
* @author Chris Warth * @author Chris Warth
* @see java.net.InetAddress#getByAddress(byte[]) * @see java.net.InetAddress#getByAddress(byte[])

View File

@ -132,23 +132,23 @@ import java.lang.NullPointerException; // for javadoc
* *
* <p> All told, then, a URI instance has the following nine components: * <p> All told, then, a URI instance has the following nine components:
* *
* <blockquote><table class="borderless"> * <table class="striped" style="margin-left:2em">
* <caption style="display:none">Describes the components of a URI:scheme,scheme-specific-part,authority,user-info,host,port,path,query,fragment</caption> * <caption style="display:none">Describes the components of a URI:scheme,scheme-specific-part,authority,user-info,host,port,path,query,fragment</caption>
* <thead> * <thead>
* <tr><th><i>Component</i></th><th><i>Type</i></th></tr> * <tr><th scope="col">Component</th><th scope="col">Type</th></tr>
* </thead> * </thead>
* <tbody> * <tbody style="text-align:left">
* <tr><td>scheme</td><td>{@code String}</td></tr> * <tr><th scope="row">scheme</th><td>{@code String}</td></tr>
* <tr><td>scheme-specific-part&nbsp;&nbsp;&nbsp;&nbsp;</td><td>{@code String}</td></tr> * <tr><th scope="row">scheme-specific-part</th><td>{@code String}</td></tr>
* <tr><td>authority</td><td>{@code String}</td></tr> * <tr><th scope="row">authority</th><td>{@code String}</td></tr>
* <tr><td>user-info</td><td>{@code String}</td></tr> * <tr><th scope="row">user-info</th><td>{@code String}</td></tr>
* <tr><td>host</td><td>{@code String}</td></tr> * <tr><th scope="row">host</th><td>{@code String}</td></tr>
* <tr><td>port</td><td>{@code int}</td></tr> * <tr><th scope="row">port</th><td>{@code int}</td></tr>
* <tr><td>path</td><td>{@code String}</td></tr> * <tr><th scope="row">path</th><td>{@code String}</td></tr>
* <tr><td>query</td><td>{@code String}</td></tr> * <tr><th scope="row">query</th><td>{@code String}</td></tr>
* <tr><td>fragment</td><td>{@code String}</td></tr> * <tr><th scope="row">fragment</th><td>{@code String}</td></tr>
* </tbody> * </tbody>
* </table></blockquote> * </table>
* *
* In a given instance any particular component is either <i>undefined</i> or * In a given instance any particular component is either <i>undefined</i> or
* <i>defined</i> with a distinct value. Undefined string components are * <i>defined</i> with a distinct value. Undefined string components are
@ -253,32 +253,35 @@ import java.lang.NullPointerException; // for javadoc
* which are taken from that specification, are used below to describe these * which are taken from that specification, are used below to describe these
* constraints: * constraints:
* *
* <blockquote><table class="borderless"> * <table class="striped" style="margin-left:2em">
* <caption style="display:none">Describes categories alpha,digit,alphanum,unreserved,punct,reserved,escaped,and other</caption> * <caption style="display:none">Describes categories alpha,digit,alphanum,unreserved,punct,reserved,escaped,and other</caption>
* <tbody> * <thead>
* <tr><th style="vertical-align:top"><i>alpha</i></th> * <tr><th scope="col">Category</th><th scope="col">Description</th></tr>
* </thead>
* <tbody style="text-align:left">
* <tr><th scope="row" style="vertical-align:top">alpha</th>
* <td>The US-ASCII alphabetic characters, * <td>The US-ASCII alphabetic characters,
* {@code 'A'}&nbsp;through&nbsp;{@code 'Z'} * {@code 'A'}&nbsp;through&nbsp;{@code 'Z'}
* and {@code 'a'}&nbsp;through&nbsp;{@code 'z'}</td></tr> * and {@code 'a'}&nbsp;through&nbsp;{@code 'z'}</td></tr>
* <tr><th style="vertical-align:top"><i>digit</i></th> * <tr><th scope="row" style="vertical-align:top">digit</th>
* <td>The US-ASCII decimal digit characters, * <td>The US-ASCII decimal digit characters,
* {@code '0'}&nbsp;through&nbsp;{@code '9'}</td></tr> * {@code '0'}&nbsp;through&nbsp;{@code '9'}</td></tr>
* <tr><th style="vertical-align:top"><i>alphanum</i></th> * <tr><th scope="row" style="vertical-align:top">alphanum</th>
* <td>All <i>alpha</i> and <i>digit</i> characters</td></tr> * <td>All <i>alpha</i> and <i>digit</i> characters</td></tr>
* <tr><th style="vertical-align:top"><i>unreserved</i>&nbsp;&nbsp;&nbsp;&nbsp;</th> * <tr><th scope="row" style="vertical-align:top">unreserved</th>
* <td>All <i>alphanum</i> characters together with those in the string * <td>All <i>alphanum</i> characters together with those in the string
* {@code "_-!.~'()*"}</td></tr> * {@code "_-!.~'()*"}</td></tr>
* <tr><th style="vertical-align:top"><i>punct</i></th> * <tr><th scope="row" style="vertical-align:top">punct</th>
* <td>The characters in the string {@code ",;:$&+="}</td></tr> * <td>The characters in the string {@code ",;:$&+="}</td></tr>
* <tr><th style="vertical-align:top"><i>reserved</i></th> * <tr><th scope="row" style="vertical-align:top">reserved</th>
* <td>All <i>punct</i> characters together with those in the string * <td>All <i>punct</i> characters together with those in the string
* {@code "?/[]@"}</td></tr> * {@code "?/[]@"}</td></tr>
* <tr><th style="vertical-align:top"><i>escaped</i></th> * <tr><th scope="row" style="vertical-align:top">escaped</th>
* <td>Escaped octets, that is, triplets consisting of the percent * <td>Escaped octets, that is, triplets consisting of the percent
* character ({@code '%'}) followed by two hexadecimal digits * character ({@code '%'}) followed by two hexadecimal digits
* ({@code '0'}-{@code '9'}, {@code 'A'}-{@code 'F'}, and * ({@code '0'}-{@code '9'}, {@code 'A'}-{@code 'F'}, and
* {@code 'a'}-{@code 'f'})</td></tr> * {@code 'a'}-{@code 'f'})</td></tr>
* <tr><th style="vertical-align:top"><i>other</i></th> * <tr><th scope="row" style="vertical-align:top">other</th>
* <td>The Unicode characters that are not in the US-ASCII character set, * <td>The Unicode characters that are not in the US-ASCII character set,
* are not control characters (according to the {@link * are not control characters (according to the {@link
* java.lang.Character#isISOControl(char) Character.isISOControl} * java.lang.Character#isISOControl(char) Character.isISOControl}
@ -287,7 +290,7 @@ import java.lang.NullPointerException; // for javadoc
* method)&nbsp;&nbsp;<i>(<b>Deviation from RFC 2396</b>, which is * method)&nbsp;&nbsp;<i>(<b>Deviation from RFC 2396</b>, which is
* limited to US-ASCII)</i></td></tr> * limited to US-ASCII)</i></td></tr>
* </tbody> * </tbody>
* </table></blockquote> * </table>
* *
* <p><a id="legal-chars"></a> The set of all legal URI characters consists of * <p><a id="legal-chars"></a> The set of all legal URI characters consists of
* the <i>unreserved</i>, <i>reserved</i>, <i>escaped</i>, and <i>other</i> * the <i>unreserved</i>, <i>reserved</i>, <i>escaped</i>, and <i>other</i>

View File

@ -51,31 +51,16 @@ import sun.security.action.GetPropertyAction;
* The abstract class {@code URLConnection} is the superclass * The abstract class {@code URLConnection} is the superclass
* of all classes that represent a communications link between the * of all classes that represent a communications link between the
* application and a URL. Instances of this class can be used both to * application and a URL. Instances of this class can be used both to
* read from and to write to the resource referenced by the URL. In * read from and to write to the resource referenced by the URL.
* general, creating a connection to a URL is a multistep process:
*
* <div style="text-align:center"><table class="plain" style="margin:0 auto">
* <caption style="display:none">Describes the process of creating a connection to a URL: openConnection() and connect() over time.</caption>
* <thead>
* <tr><th>{@code openConnection()}</th>
* <th>{@code connect()}</th></tr>
* </thead>
* <tbody>
* <tr><td>Manipulate parameters that affect the connection to the remote
* resource.</td>
* <td>Interact with the resource; query header fields and
* contents.</td></tr>
* </tbody>
* </table>
* ----------------------------&gt;
* <br>time</div>
* *
* <p>
* In general, creating a connection to a URL is a multistep process:
* <ol> * <ol>
* <li>The connection object is created by invoking the * <li>The connection object is created by invoking the
* {@code openConnection} method on a URL. * {@link URL#openConnection() openConnection} method on a URL.
* <li>The setup parameters and general request properties are manipulated. * <li>The setup parameters and general request properties are manipulated.
* <li>The actual connection to the remote object is made, using the * <li>The actual connection to the remote object is made, using the
* {@code connect} method. * {@link #connect() connect} method.
* <li>The remote object becomes available. The header fields and the contents * <li>The remote object becomes available. The header fields and the contents
* of the remote object can be accessed. * of the remote object can be accessed.
* </ol> * </ol>

View File

@ -72,22 +72,22 @@ import java.security.Permission;
* separated by '/' characters. <i>path</i> may also be empty. The path is specified * separated by '/' characters. <i>path</i> may also be empty. The path is specified
* in a similar way to the path in {@link java.io.FilePermission}. There are * in a similar way to the path in {@link java.io.FilePermission}. There are
* three different ways as the following examples show: * three different ways as the following examples show:
* <table class="plain"> * <table class="striped">
* <caption>URL Examples</caption> * <caption>URL Examples</caption>
* <thead> * <thead>
* <tr><th>Example url</th><th>Description</th></tr> * <tr><th scope="col">Example url</th><th scope="col">Description</th></tr>
* </thead> * </thead>
* <tbody> * <tbody style="text-align:left">
* <tr><td style="white-space:nowrap;">http://www.oracle.com/a/b/c.html</td> * <tr><th scope="row" style="white-space:nowrap;">http://www.oracle.com/a/b/c.html</th>
* <td>A url which identifies a specific (single) resource</td> * <td>A url which identifies a specific (single) resource</td>
* </tr> * </tr>
* <tr><td>http://www.oracle.com/a/b/*</td> * <tr><th scope="row">http://www.oracle.com/a/b/*</th>
* <td>The '*' character refers to all resources in the same "directory" - in * <td>The '*' character refers to all resources in the same "directory" - in
* other words all resources with the same number of path components, and * other words all resources with the same number of path components, and
* which only differ in the final path component, represented by the '*'. * which only differ in the final path component, represented by the '*'.
* </td> * </td>
* </tr> * </tr>
* <tr><td>http://www.oracle.com/a/b/-</td> * <tr><th scope="row">http://www.oracle.com/a/b/-</th>
* <td>The '-' character refers to all resources recursively below the * <td>The '-' character refers to all resources recursively below the
* preceding path (eg. http://www.oracle.com/a/b/c/d/e.html matches this * preceding path (eg. http://www.oracle.com/a/b/c/d/e.html matches this
* example). * example).
@ -114,11 +114,12 @@ import java.security.Permission;
* methods and permitted request headers of the permission (respectively). The two lists * methods and permitted request headers of the permission (respectively). The two lists
* are separated by a colon ':' character and elements of each list are comma separated. * are separated by a colon ':' character and elements of each list are comma separated.
* Some examples are: * Some examples are:
* <pre> * <ul>
* "POST,GET,DELETE" * <li>"POST,GET,DELETE"
* "GET:X-Foo-Request,X-Bar-Request" * <li>"GET:X-Foo-Request,X-Bar-Request"
* "POST,GET:Header1,Header2" * <li>"POST,GET:Header1,Header2"
* </pre> * </ul>
* <p>
* The first example specifies the methods: POST, GET and DELETE, but no request headers. * The first example specifies the methods: POST, GET and DELETE, but no request headers.
* The second example specifies one request method and two headers. The third * The second example specifies one request method and two headers. The third
* example specifies two request methods, and two headers. * example specifies two request methods, and two headers.
@ -253,16 +254,16 @@ public final class URLPermission extends Permission {
* <table class="plain"> * <table class="plain">
* <caption>Examples of Path Matching</caption> * <caption>Examples of Path Matching</caption>
* <thead> * <thead>
* <tr><th>this's path</th><th>p's path</th><th>match</th></tr> * <tr><th scope="col">this's path</th><th scope="col">p's path</th><th>match</th></tr>
* </thead> * </thead>
* <tbody> * <tbody style="text-align:left">
* <tr><td>/a/b</td><td>/a/b</td><td>yes</td></tr> * <tr><th scope="row">/a/b</th><th scope="row">/a/b</th><td>yes</td></tr>
* <tr><td>/a/b/*</td><td>/a/b/c</td><td>yes</td></tr> * <tr><th scope="row" rowspan="3">/a/b/*</th><th scope="row">/a/b/c</th><td>yes</td></tr>
* <tr><td>/a/b/*</td><td>/a/b/c/d</td><td>no</td></tr> * <tr> <th scope="row">/a/b/c/d</th><td>no</td></tr>
* <tr><td>/a/b/-</td><td>/a/b/c/d</td><td>yes</td></tr> * <tr> <th scope="row">/a/b/c/-</th><td>no</td></tr>
* <tr><td>/a/b/-</td><td>/a/b/c/d/e</td><td>yes</td></tr> * <tr><th scope="row" rowspan="3">/a/b/-</th><th scope="row">/a/b/c/d</th><td>yes</td></tr>
* <tr><td>/a/b/-</td><td>/a/b/c/*</td><td>yes</td></tr> * <tr> <th scope="row">/a/b/c/d/e</th><td>yes</td></tr>
* <tr><td>/a/b/*</td><td>/a/b/c/-</td><td>no</td></tr> * <tr> <th scope="row">/a/b/c/*</th><td>yes</td></tr>
* </tbody> * </tbody>
* </table> * </table>
*/ */

View File

@ -23,7 +23,7 @@
or visit www.oracle.com if you need additional information or have any or visit www.oracle.com if you need additional information or have any
questions. questions.
--> -->
<HTML> <HTML lang="EN">
<HEAD> <HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1"> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Networking Properties</TITLE> <TITLE>Networking Properties</TITLE>
@ -35,7 +35,7 @@ alter the mechanisms and behavior of the various classes of the
java.net package. Some are checked only once at startup of the VM, java.net package. Some are checked only once at startup of the VM,
and therefore are best set using the -D option of the java command, and therefore are best set using the -D option of the java command,
while others have a more dynamic nature and can also be changed using while others have a more dynamic nature and can also be changed using
the <a href="../../lang/System.html#setProperty(java.lang.String,%20java.lang.String)">System.setProperty()</a> API. the <a href="../../lang/System.html#setProperty-java.lang.String-java.lang.String-">System.setProperty()</a> API.
The purpose of this document is to list The purpose of this document is to list
and detail all of these properties.</P> and detail all of these properties.</P>
<P>If there is no special note, a property value is checked every time it is used.</P> <P>If there is no special note, a property value is checked every time it is used.</P>

View File

@ -1292,7 +1292,7 @@ public abstract class SSLEngine {
* href="http://www.ietf.org/rfc/rfc7301.txt"> RFC 7301 </a>, the * href="http://www.ietf.org/rfc/rfc7301.txt"> RFC 7301 </a>, the
* Application-Layer Protocol Negotiation (ALPN), can negotiate * Application-Layer Protocol Negotiation (ALPN), can negotiate
* application-level values between peers. * application-level values between peers.
* <p> *
* @implSpec * @implSpec
* The implementation in this class throws * The implementation in this class throws
* {@code UnsupportedOperationException} and performs no other action. * {@code UnsupportedOperationException} and performs no other action.
@ -1317,7 +1317,7 @@ public abstract class SSLEngine {
* Like {@link #getHandshakeSession()}, * Like {@link #getHandshakeSession()},
* a connection may be in the middle of a handshake. The * a connection may be in the middle of a handshake. The
* application protocol may or may not yet be available. * application protocol may or may not yet be available.
* <p> *
* @implSpec * @implSpec
* The implementation in this class throws * The implementation in this class throws
* {@code UnsupportedOperationException} and performs no other action. * {@code UnsupportedOperationException} and performs no other action.

View File

@ -646,7 +646,7 @@ public class SSLParameters {
* requested by the peer, the underlying protocol will determine what * requested by the peer, the underlying protocol will determine what
* action to take. (For example, ALPN will send a * action to take. (For example, ALPN will send a
* {@code "no_application_protocol"} alert and terminate the connection.) * {@code "no_application_protocol"} alert and terminate the connection.)
* <p> *
* @implSpec * @implSpec
* This method will make a copy of the {@code protocols} array. * This method will make a copy of the {@code protocols} array.
* *

View File

@ -702,7 +702,7 @@ public abstract class SSLSocket extends Socket
* href="http://www.ietf.org/rfc/rfc7301.txt"> RFC 7301 </a>, the * href="http://www.ietf.org/rfc/rfc7301.txt"> RFC 7301 </a>, the
* Application-Layer Protocol Negotiation (ALPN), can negotiate * Application-Layer Protocol Negotiation (ALPN), can negotiate
* application-level values between peers. * application-level values between peers.
* <p> *
* @implSpec * @implSpec
* The implementation in this class throws * The implementation in this class throws
* {@code UnsupportedOperationException} and performs no other action. * {@code UnsupportedOperationException} and performs no other action.
@ -727,7 +727,7 @@ public abstract class SSLSocket extends Socket
* Like {@link #getHandshakeSession()}, * Like {@link #getHandshakeSession()},
* a connection may be in the middle of a handshake. The * a connection may be in the middle of a handshake. The
* application protocol may or may not yet be available. * application protocol may or may not yet be available.
* <p> *
* @implSpec * @implSpec
* The implementation in this class throws * The implementation in this class throws
* {@code UnsupportedOperationException} and performs no other action. * {@code UnsupportedOperationException} and performs no other action.