Commit f79c626 1 parent ea48a0b commit f79c626 Copy full SHA for f79c626
File tree 5 files changed +7
-3
lines changed
src/jdk.httpserver/share/classes/com/sun/net/httpserver
5 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ public int getResponseCode() {
151
151
* is required. Any response headers needing to be sent back to the client are set
152
152
* in the given {@code HttpExchange}. The response code to be returned must be
153
153
* provided in the {@code Retry} object. {@code Retry} may occur multiple times.
154
- * <ul/ >
154
+ * </ul >
155
155
*
156
156
* @param exch the {@code HttpExchange} upon which authenticate is called
157
157
* @return the result
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ public interface HttpHandler {
42
42
* @param exchange the exchange containing the request from the
43
43
* client and used to send the response
44
44
* @throws NullPointerException if exchange is {@code null}
45
+ * @throws IOException if an I/O error occurs
45
46
*/
46
47
public abstract void handle (HttpExchange exchange ) throws IOException ;
47
48
}
Original file line number Diff line number Diff line change 26
26
package com .sun .net .httpserver ;
27
27
28
28
import java .net .InetSocketAddress ;
29
+ import javax .net .ssl .SSLContext ;
29
30
import javax .net .ssl .SSLParameters ;
30
31
31
32
/**
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ protected HttpsServer() {
58
58
* must also have a {@code HttpsConfigurator} established with
59
59
* {@link #setHttpsConfigurator(HttpsConfigurator)}.
60
60
*
61
+ * @return an instance of {@code HttpsServer}
61
62
* @throws IOException if an I/O error occurs
62
63
*/
63
64
public static HttpsServer create () throws IOException {
@@ -80,6 +81,7 @@ public static HttpsServer create() throws IOException {
80
81
* the address
81
82
* @param backlog the socket backlog. If this value is less than or equal to
82
83
* zero, then a system default value is used.
84
+ * @return an instance of {@code HttpsServer}
83
85
* @throws BindException if the server cannot bind to the requested address,
84
86
* or if the server is already bound
85
87
* @throws IOException if an I/O error occurs
Original file line number Diff line number Diff line change 26
26
/**
27
27
Provides a simple high-level Http server API, which can be used to build
28
28
embedded HTTP servers. Both "http" and "https" are supported. The API provides
29
- a partial implementation of RFC <a href="http ://www.ietf.org/rfc/rfc2616.txt">2616</a> (HTTP 1.1)
30
- and RFC <a href="http ://www.ietf.org/rfc/rfc2818.txt">2818</a> (HTTP over TLS).
29
+ a partial implementation of RFC <a href="https ://www.ietf.org/rfc/rfc2616.txt">2616</a> (HTTP 1.1)
30
+ and RFC <a href="https ://www.ietf.org/rfc/rfc2818.txt">2818</a> (HTTP over TLS).
31
31
Any HTTP functionality not provided by this API can be implemented by application code
32
32
using the API.
33
33
<p>
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Feb 25, 2021
Review
Issues