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.
@@ -299,10 +329,14 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
299
329
300
330
//
301
331
332
+
// region depreciated - temporary context
333
+
302
334
/**
303
335
* Creates a temporary context at a random address that will remove itself after the first connection. This type of context is typically used for single use downloads or media file hosting. <br>
304
336
* To get the context use {@link HttpContext#getPath()}.
305
337
*
338
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
339
+
*
306
340
* @return the http context associated with the context
307
341
*
308
342
* @see HttpContext
@@ -318,12 +352,15 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
* Creates a temporary context at a random address that will remove itself after the first connection or after the max time is passed. This type of context is typically used for single use downloads or media file hosting. <br>
325
360
* To get the context use {@link HttpContext#getPath()}.
326
361
*
362
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
363
+
*
327
364
* @param maxTime the maximum time the context may exist for (in milliseconds)
328
365
* @return the http context associated with the context
329
366
*
@@ -340,13 +377,16 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
* Creates a temporary context at a random address that will remove itself after the first connection. This type of context is typically used for single use downloads or media file hosting. <br>
347
385
* To get the context use {@link HttpContext#getPath()}. <br>
348
386
* This method encapsulates the handler with a temporary one, so {@link HttpContext#getHandler()} will not return the one passed in the parameter, instead it will return the encapsulating handler.
349
387
*
388
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
389
+
*
350
390
* @param handler handler to use
351
391
* @return the http context associated with the context
352
392
*
@@ -364,13 +404,16 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
* Creates a temporary context at a random address that will remove itself after the first connection or after the max time is passed. This type of context is typically used for single use downloads or media file hosting. <br>
371
412
* To get the context use {@link HttpContext#getPath()}. <br>
372
413
* This method encapsulates the handler with a temporary one, so {@link HttpContext#getHandler()} will not return the one passed in the parameter, instead it will return the encapsulating handler.
373
414
*
415
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
416
+
*
374
417
* @param handler handler to use
375
418
* @param maxTime the maximum time the context may exist for (in milliseconds)
376
419
* @return the http context associated with the context
@@ -389,11 +432,14 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
* Creates a temporary context at a specified address that will remove itself after the first connection. This type of context is typically used for single use downloads or media file hosting. <br>
396
440
*
441
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
442
+
*
397
443
* @param context the context
398
444
* @return the http context associated with the context
399
445
* @throws IllegalArgumentException if the context is invalid or taken
@@ -412,11 +458,14 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
* Creates a temporary context at a specified address that will remove itself after the first connection or after the max time is passed. This type of context is typically used for single use downloads or media file hosting. <br>
419
466
*
467
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
468
+
*
420
469
* @param context the context
421
470
* @param maxTime the maximum time the context may exist for (in milliseconds)
422
471
* @return the http context associated with the context
@@ -437,12 +486,15 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
* Creates a temporary context at a specified address that will remove itself after the first connection. This type of context is typically used for single use downloads or media file hosting. <br>
444
494
* This method encapsulates the handler with a temporary one, so {@link HttpContext#getHandler()} will not return the one passed in the parameter, instead it will return the encapsulating handler.
445
495
*
496
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
497
+
*
446
498
* @param context the context
447
499
* @param handler handler to use
448
500
* @return the http context associated with the context
@@ -463,6 +515,7 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
@@ -471,6 +524,8 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
471
524
* To get the context use {@link HttpContext#getPath()}. <br>
472
525
* This method encapsulates the handler with a temporary one, so {@link HttpContext#getHandler()} will not return the one passed in the parameter, instead it will return the encapsulating handler.
473
526
*
527
+
* @deprecated Use {@link com.kttdevelopment.simplehttpserver.handler.TemporaryHandler} instead
528
+
*
474
529
* @param context the context
475
530
* @param handler handler to use
476
531
* @param maxTime the maximum time the context may exist for (in milliseconds)
@@ -492,8 +547,11 @@ public static SimpleHttpServer create(final int port, final int backlog) throws
0 commit comments