You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpsServer.java
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
importjava.io.IOException;
6
6
7
7
/**
8
-
* <i>This class is a simplified implementation of {@link HttpsServer}.</i><br>
8
+
* <i>This class is a simplified implementation of {@link HttpsServer}.</i>
9
+
* The server must have a {@link HttpsConfigurator} set using {@link #setHttpsConfigurator(HttpsConfigurator)}.<br>
9
10
* At least one {@link HttpHandler} must be created in order to process requests. When handling requests the server will use the most specific context. If no handler can be found it is rejected with a 404 response. <br>
10
11
* <b>Contexts are case-sensitive.</b>
11
12
*
@@ -31,7 +32,7 @@ public abstract class SimpleHttpsServer extends SimpleHttpServer {
31
32
//
32
33
33
34
/**
34
-
* Creates a {@link SimpleHttpsServer}.
35
+
* Creates a {@link SimpleHttpsServer}. The server must have a {@link HttpsConfigurator} set using {@link #setHttpsConfigurator(HttpsConfigurator)}.
* Creates a {@link SimpleHttpsServer} bounded to a port.
48
+
* Creates a {@link SimpleHttpsServer} bounded to a port. The server must have a {@link HttpsConfigurator} set using {@link #setHttpsConfigurator(HttpsConfigurator)}.
48
49
*
49
50
* @param port port to bind to
50
51
* @return a {@link SimpleHttpsServer}
@@ -61,10 +62,10 @@ public static SimpleHttpsServer create(final int port) throws IOException {
61
62
}
62
63
63
64
/**
64
-
* Creates a {@link SimpleHttpsServer} bounded to a port.
65
+
* Creates a {@link SimpleHttpsServer} bounded to a port. The server must have a {@link HttpsConfigurator} set using {@link #setHttpsConfigurator(HttpsConfigurator)}.
65
66
*
66
67
* @param port port to bind to
67
-
* @param backlog request backlog
68
+
* @param backlog maximum amount of inbound connections allowed
68
69
* @return a {@link SimpleHttpsServer}
69
70
* @throws java.net.BindException if server can not bind to port
70
71
* @throws NullPointerException if address is <code>null</code>
0 commit comments