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/SimpleHttpServer.java
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
* @see SimpleHttpsServer
18
18
* @see SimpleHttpHandler
19
19
* @since 02.00.00
20
-
* @version 03.05.02
20
+
* @version 03.05.08
21
21
* @author Ktt Development
22
22
*/
23
23
@SuppressWarnings("SpellCheckingInspection")
@@ -270,12 +270,15 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
270
270
271
271
/**
272
272
* Creates an empty context.
273
+
* <br>
274
+
* * {@link HttpServer} often does not throw an exception for duplicate contexts. <a href="https://github.com/Ktt-Development/simplehttpserver/issues/86">#86</a>
273
275
*
274
276
* @param context the context
275
277
* @return the http context associated with the context
276
-
* @throws IllegalArgumentException if the context is invalid or taken
278
+
* @throws IllegalArgumentException if the context is invalid or taken*
277
279
* @throws NullPointerException if the context is null
278
280
*
281
+
*
279
282
* @see HttpContext
280
283
* @see #createContext(String, HttpHandler)
281
284
* @see #removeContext(String)
@@ -287,11 +290,13 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
287
290
288
291
/**
289
292
* Creates a context mapped to a specified {@link HttpHandler}.
293
+
* <br>
294
+
* * {@link HttpServer} often does not throw an exception for duplicate contexts. <a href="https://github.com/Ktt-Development/simplehttpserver/issues/86">#86</a>
290
295
*
291
296
* @param context the context
292
297
* @param handler the handler
293
298
* @return the http context associated with the context
294
-
* @throws IllegalArgumentException if the context is invalid or taken
299
+
* @throws IllegalArgumentException if the context is invalid or taken*
295
300
* @throws NullPointerException if the context is null
296
301
*
297
302
* @see HttpContext
@@ -308,11 +313,13 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
308
313
309
314
/**
310
315
* Creates a context mapped to a specific {@link HttpContext} with an {@link Authenticator}.
316
+
* <br>
317
+
* * {@link HttpServer} often does not throw an exception for duplicate contexts. <a href="https://github.com/Ktt-Development/simplehttpserver/issues/86">#86</a>
311
318
*
312
319
* @param context the context
313
320
* @param authenticator authenticator
314
321
* @return the http context associated with the context
315
-
* @throws IllegalArgumentException if the context is invalid or taken
322
+
* @throws IllegalArgumentException if the context is invalid or taken*
316
323
* @throws NullPointerException if the context is null
317
324
*
318
325
* @see HttpContext
@@ -327,12 +334,14 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
327
334
328
335
/**
329
336
* Creates a context mapped to a specific {@link HttpContext} with an {@link Authenticator}.
337
+
* <br>
338
+
* * {@link HttpServer} often does not throw an exception for duplicate contexts. <a href="https://github.com/Ktt-Development/simplehttpserver/issues/86">#86</a>
330
339
*
331
340
* @param context the context
332
341
* @param handler the handler
333
342
* @param authenticator authenticator
334
343
* @return the http context associated with the context
335
-
* @throws IllegalArgumentException if the context is invalid or taken
344
+
* @throws IllegalArgumentException if the context is invalid or taken*
336
345
* @throws NullPointerException if the context is null
0 commit comments