Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit eea39d2

Browse files
authored
Updated Backlog Documentation
Updated Backlog Documentation
2 parents 099025a + f21bdbb commit eea39d2

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static SimpleHttpServer create(final int port) throws IOException {
6868
* Creates a {@link SimpleHttpServer} bounded to a port.
6969
*
7070
* @param port port to bind to
71-
* @param backlog request backlog
71+
* @param backlog maximum amount of inbound connections allowed
7272
* @return a {@link SimpleHttpServer}
7373
* @throws java.net.BindException if server can not bind to port
7474
* @throws NullPointerException if address is <code>null</code>
@@ -119,7 +119,7 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
119119
* Binds the server to a port.
120120
*
121121
* @param port port to bind the server to
122-
* @param backlog request backlog
122+
* @param backlog maximum amount of inbound connections allowed
123123
* @return address the server is binded to
124124
* @throws java.net.BindException if server could not be bound to port, or if it's already bound
125125
* @throws IllegalArgumentException if port is out of range
@@ -156,7 +156,7 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
156156
* Binds the server to a port.
157157
*
158158
* @param addr address to bind the server to
159-
* @param backlog request backlog
159+
* @param backlog maximum amount of inbound connections allowed
160160
* @throws java.net.BindException if server could not be bound to port, or if it's already bound
161161
* @throws NullPointerException if address is <code>null</code>
162162
* @throws IOException uncaught exception

src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpServerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class SimpleHttpServerImpl extends SimpleHttpServer {
3131
* Creates a {@link SimpleHttpServer}.
3232
*
3333
* @param port port to run the server on
34-
* @param backlog how many requests to backlog
34+
* @param backlog maximum amount of inbound connections allowed
3535
* @return a {@link SimpleHttpServer}
3636
* @throws java.net.BindException if server can not bind to port
3737
* @throws IOException uncaught exception

src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpsServer.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import java.io.IOException;
66

77
/**
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>
910
* 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>
1011
* <b>Contexts are case-sensitive.</b>
1112
*
@@ -31,7 +32,7 @@ public abstract class SimpleHttpsServer extends SimpleHttpServer {
3132
//
3233

3334
/**
34-
* Creates a {@link SimpleHttpsServer}.
35+
* Creates a {@link SimpleHttpsServer}. The server must have a {@link HttpsConfigurator} set using {@link #setHttpsConfigurator(HttpsConfigurator)}.
3536
*
3637
* @return a {@link SimpleHttpsServer}
3738
* @throws IOException uncaught exception
@@ -44,7 +45,7 @@ public static SimpleHttpsServer create() throws IOException {
4445
}
4546

4647
/**
47-
* 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)}.
4849
*
4950
* @param port port to bind to
5051
* @return a {@link SimpleHttpsServer}
@@ -61,10 +62,10 @@ public static SimpleHttpsServer create(final int port) throws IOException {
6162
}
6263

6364
/**
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)}.
6566
*
6667
* @param port port to bind to
67-
* @param backlog request backlog
68+
* @param backlog maximum amount of inbound connections allowed
6869
* @return a {@link SimpleHttpsServer}
6970
* @throws java.net.BindException if server can not bind to port
7071
* @throws NullPointerException if address is <code>null</code>

0 commit comments

Comments
 (0)