Commit Graph

4267 Commits

Author SHA1 Message Date
Julien Viet
db4dca16f0 Fix mutual static references between HttpMethod and HttpMethodImpl 2020-01-20 10:49:38 +01:00
Julien Viet
a5b2fa5434 Add HttpMethod.values() returning an un-modifiable list of HTTP methods known by the declaring interface 2020-01-20 10:40:20 +01:00
Thomas Segismont
46eaf41f8b Removed leftover file 2020-01-16 14:01:14 +01:00
Julien Viet
d38bef21be Remove obsolete overrides 2020-01-15 10:38:01 +01:00
Julien Viet
7c4a469032 Remove unnecessary overrides in HttpClientRequestPushPromise 2020-01-15 10:23:14 +01:00
Francesco Guardiani
0b906f8b38 Fix https://github.com/eclipse-vertx/vert.x/issues/3254 (#3255)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-01-14 09:28:48 +01:00
Paulo Lopes
48efae6db8 Merge pull request #3252 from eclipse-vertx/missing-methods-from-rfcs
Missing methods from rfcs
2020-01-10 16:18:12 +01:00
Paulo Lopes
dbf2013462 Merge pull request #3247 from eclipse-vertx/http-method-interface
HttpMethod is an interface
2020-01-10 16:17:52 +01:00
Paulo Lopes
69785131e5 Merge pull request #3223 from eclipse-vertx/issues/json-next-step
Allow Shareable on JSON copy + Autocast getString()
2020-01-10 16:16:58 +01:00
Paulo Lopes
458993255e Adds all RFC listed verbs to the interface 2020-01-10 15:58:45 +01:00
Paulo Lopes
7d73eb1819 Fix broken test 2020-01-10 13:37:30 +01:00
Paulo Lopes
b0ce2a9bae Added more checks 2020-01-10 13:13:32 +01:00
Duo Zhang
a24efdb5e9 Fix a typo in the javadoc for HttpConnection.localAddress
Signed-off-by: Duo Zhang <palomino219@gmail.com>
2020-01-10 10:23:13 +01:00
Julien Viet
9b4e105d5e CompositeFuture now delegates handler management to a Promise<CompositeFuture> in order to benefit from multiple handler support built-in Promise. 2020-01-09 17:52:36 +01:00
Thomas Segismont
950b1b96be Fully @GenIgnore CompletionStage interop methods
Otherwise it breaks Rx generation and there's no real interest in these methods there.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-09 17:16:35 +01:00
Julien Viet
97ea217dca Use the internal logger 2020-01-09 11:52:02 +01:00
Julien Viet
8828632053 Check NetSocket worker execution in buffer handler 2020-01-08 17:03:35 +01:00
Julien Viet
42a2df55bf NetSocket end message should be dispatched correctly on the context 2020-01-08 17:01:36 +01:00
Julien Viet
9fbc39be43 Add a test to ensure that closing an HTTP connection within the server connection handler will not call the request handler 2020-01-08 16:53:04 +01:00
Julien Viet
3b685e70b3 Connection should not process messages when in closed state - see #3249 2020-01-08 16:52:58 +01:00
Julien Viet
d3ba036bf0 HttpMethod is an interface - closes #3246 2020-01-07 15:57:02 +01:00
Julien Ponge
5c1354f3bb Merge pull request #3226 from jponge/cs-interop
CompletionStage interoperability
2020-01-07 11:59:15 +01:00
Julien Ponge
9c6fcc41c4 Rename from to fromCompletionStage
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2020-01-07 10:33:50 +01:00
Julien Ponge
f9547d2e07 Just use await with default timeouts
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2020-01-07 10:29:08 +01:00
Thomas Segismont
8f576a56d3 Merge pull request #3244 from tsegismont/context-timer
Expose setTimer and setPeriodic on ContextInternal
2020-01-07 10:16:29 +01:00
Thomas Segismont
b0730b2fe8 Update Javadoc
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-07 10:10:27 +01:00
Thomas Segismont
087a5ceef8 Don't expose scheduleTimeout on VertxInternal
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-07 10:07:06 +01:00
Julien Viet
be7c45466a Add cacheDirname to exception to help troubleshoot issue 2020-01-07 09:54:45 +01:00
Thomas Segismont
585947d9b6 Expose setTimer and setPeriodic on ContextInternal
This can simplify when a component is bound to a context and we have to schedules async tasks

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
2020-01-06 18:23:15 +01:00
Julien Viet
5a585a1a62 WebSocket API cleanup - closes #3235 2019-12-18 14:11:15 +01:00
Julien Ponge
b03a57e7ff Improved "from" example with a flatMap
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-16 18:24:31 +01:00
Julien Ponge
5d61c83a3b Flag which "from" method to prefer
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-16 18:24:12 +01:00
Julien Viet
cf6c864a2a Vertx#close Future will not callback the handler - closes #3232 2019-12-16 16:26:14 +01:00
Julien Viet
2b78689ad3 Replace the current VertxFactory SPI with an internal factory that enable overriding of Vertx SPI services in a single class. 2019-12-16 14:50:24 +01:00
Paulo Lopes
cce0f1ae27 Merge pull request #3228 from eclipse-vertx/issues/3227
Fixes #3227
2019-12-16 14:22:06 +01:00
Julien Ponge
edcdf3b05b Documentation + examples of the CS interop
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-16 12:33:24 +01:00
Julien Viet
ff7f5c07f0 Bunch of minor improvements and renaming 2019-12-16 09:40:45 +01:00
Paulo Lopes
cfc9fe020a Fixes #3227 2019-12-13 10:43:39 +01:00
Paulo Lopes
2079353d07 allow shareables in copy() 2019-12-12 20:44:18 +01:00
Paulo Lopes
1bc30975a0 Relax getString() to perform autocast 2019-12-12 20:44:15 +01:00
Julien Ponge
3be4d274e5 Update src/main/java/io/vertx/core/Future.java
Co-Authored-By: Thomas Segismont <tsegismont@gmail.com>
2019-12-12 17:19:25 +01:00
Julien Ponge
a698e86cfa Reformating
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 17:17:45 +01:00
Julien Ponge
260fed69b1 Javadocs
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 16:44:03 +01:00
Julien Ponge
0711b2b45e Future from CompletionStage dispatch to Vert.x context
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 15:47:06 +01:00
Julien Ponge
7ed8f95af9 Future from CompletionStage trampolining
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 15:39:41 +01:00
Julien Ponge
9cdd059800 CompletionStage delayed completion test
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 11:27:35 +01:00
Julien Ponge
81f35814da CompletionStage trampolining test
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 11:18:34 +01:00
Julien Ponge
48561de730 CompletionStage interop methods
Signed-off-by: Julien Ponge <julien.ponge@gmail.com>
2019-12-12 10:49:59 +01:00
Julien Viet
14193583ba Remove irrelevant test 2019-12-10 22:56:13 +01:00
Julien Viet
b5b729a1ad Fix test to be non racy anymore and remove irrelevant tests 2019-12-10 22:33:35 +01:00