29 Commits

Author SHA1 Message Date
Patrick Concannon
5973e91cc3 8253005: Add @throws IOException in javadoc for HttpEchange.sendResponseHeaders
Reviewed-by: dfuchs
2020-11-13 11:31:25 +00:00
Patrick Concannon
2b78a43f77 8255584: HttpPrincipal::getName returns incorrect name
Reviewed-by: dfuchs
2020-11-05 10:10:21 +00:00
Patrick Concannon
d12819158a 8253473: Javadoc clean up in HttpHandler, HttpPrincipal, HttpContext, and HttpsConfigurator
Reviewed-by: dfuchs
2020-10-30 08:42:20 +00:00
Patrick Concannon
da97ab5c8a 8253474: Javadoc clean up in HttpsExchange, HttpsParameters, and HttpsServer
Reviewed-by: dfuchs, michaelm
2020-10-21 10:04:21 +00:00
Michael McMahon
953e472ded 8254967: com.sun.net.HttpsServer spins on TLS session close
Reviewed-by: dfuchs
2020-10-19 16:57:40 +00:00
Patrick Concannon
49128a1ee5 8253475: Javadoc clean up in HttpExchange and HttpServer
Reviewed-by: dfuchs
2020-10-07 09:12:34 +00:00
Patrick Concannon
0fd41c3b6a 8253470: Javadoc clean up in Filter and Headers
Reviewed-by: dfuchs, michaelm
2020-10-02 12:06:48 +00:00
Patrick Concannon
16b8c39964 8253053: Javadoc clean up in Authenticator and BasicAuthenicator
Reviewed-by: dfuchs, rriggs, chegar, michaelm
2020-09-28 13:17:46 +00:00
Patrick Concannon
ae20dd6b9b 8251496: Fix doclint warnings in jdk.net.httpserver
Reviewed-by: dfuchs, rriggs, chegar
2020-09-22 08:56:15 +00:00
Rahul Yadav
38f9a938e5 8245307: Update ExchangeImpl to use thread safe DateTimeFormatter
The fix updates sun.net.httpserver.ExchangeImpl to use thread safe DateTimeFormatter for response headers, this replaces DateFormat that was using ThreadLocal.

Reviewed-by: dfuchs, alanb, chegar
2020-06-15 16:26:31 +01:00
Michael McMahon
8e5af26326 8234825: Better Headings for HTTP Servers
Reviewed-by: chegar, dfuchs, igerasim
2019-12-16 15:13:19 +00:00
Michael McMahon
b73faca452 8235976: Directives in WWW-Authenticate should be comma separated
Reviewed-by: chegar
2019-12-16 16:44:03 +00:00
Michael McMahon
3000f212f2 8235413: com.sun.net.httpserver.BasicAuthenticator.charset is protected field
Reviewed-by: chegar, dfuchs
2019-12-05 16:43:06 +00:00
Julia Boes
e00ded00f0 8233185: HttpServer.stop() blocks indefinitely when called on dispatch thread
Skip dispatcherThread.join() if current thread is the dispatcherThread

Reviewed-by: dfuchs, msheppar, vtewari
2019-11-28 13:02:30 +00:00
Kiran Ravikumar
6fe51396a2 8214560: Use {@systemProperty} for definitions of system properties (httpserver)
Reviewed-by: dfuchs, coffeys, chegar
2019-10-09 10:15:58 +00:00
Patrick Concannon
77adc77ce3 8229235: com.sun.net.httpserver.HttpExchange should implement AutoCloseable
Reviewed-by: dfuchs, michaelm
2019-09-02 15:58:44 +01:00
Michael McMahon
e3b6b7f842 8199849: Add support for UTF-8 encoded credentials in HTTP Basic Authentication
Reviewed-by: chegar, dfuchs
2019-08-22 14:36:10 +01:00
Michael McMahon
f7d689f4bc 8225479: com.sun.net.httpserver.HttpContext that does not end with '/' has surprising matches
Reviewed-by: dfuchs
2019-07-10 14:27:51 +01:00
Chris Hegarty
030493e7e7 8213912: Semantic typo in HttpExchange.java
Reviewed-by: dfuchs
2019-03-15 14:54:27 +00:00
Daniel Fuchs
6d98f3c4d7 8218554: HttpServer: allow custom handlers to request that the connection be closed after the exchange
Custom handler code can supply `Connection: close` to response headers in order to force connection close after the exchange terminates.

Reviewed-by: chegar
2019-02-11 18:41:24 +01:00
Michael McMahon
b9279ef850 8211437: java.net.http.HttpClient hangs on 204 reply without Content-length 0
Reviewed-by: chegar, dfuchs
2018-10-19 14:23:43 +01:00
Michael McMahon
e8f90125d2 8211420: com.sun.net.httpserver.HttpServer returns Content-length header for 204 response code
Reviewed-by: chegar
2018-10-05 11:28:23 +01:00
Chris Hegarty
659fdd8dc4 8204679: HTTP Client refresh
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm
2018-06-20 09:05:57 -07:00
Chris Hegarty
a3b61fd4c7 8197564: HTTP Client implementation
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm, prappo
2018-04-17 08:54:17 -07:00
Chris Hegarty
2c73c97dd0 8199437: Improve diagnostic system assertion message in com.sun.net.httpserver impl
Reviewed-by: alanb, dfuchs
2018-03-21 09:06:45 +00:00
KUBOTA Yuji
605827c671 8169358: httpserver does not close connections when RejectedExecutionException occurs
Catch unexpected exceptions in Dispatcher::handle

Reviewed-by: chegar, dfuchs, clanger
2018-03-08 11:21:57 +09:00
Chris Hegarty
37811b7460 8191494: Refresh incubating HTTP Client
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm
2017-12-06 11:11:59 -08:00
Michael McMahon
62d9659c87 8190793: Httpserver does not detect truncated request body
Reviewed-by: chegar, dfuchs
2017-11-06 16:32:00 +00:00
Erik Joelsson
3789983e89 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00