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
Copy file name to clipboardexpand all lines: http/vertx/src/main/java/io/cloudevents/http/vertx/VertxMessageFactory.java
+19-23
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,10 @@
11
11
importio.cloudevents.lang.Nullable;
12
12
importio.cloudevents.rw.CloudEventRWException;
13
13
importio.cloudevents.rw.CloudEventWriter;
14
-
importio.vertx.core.*;
14
+
importio.vertx.core.AsyncResult;
15
+
importio.vertx.core.Future;
16
+
importio.vertx.core.Handler;
17
+
importio.vertx.core.MultiMap;
15
18
importio.vertx.core.buffer.Buffer;
16
19
importio.vertx.core.http.HttpHeaders;
17
20
importio.vertx.core.http.HttpServerRequest;
@@ -23,7 +26,7 @@
23
26
24
27
/**
25
28
* This class provides a collection of methods to create {@link io.cloudevents.core.message.MessageReader}
26
-
* and {@link io.cloudevents.core.message.MessageWriter} for Vert.x HTTP Server and Web Client.
29
+
* and {@link io.cloudevents.core.message.MessageWriter} for Vert.x {@link io.vertx.core.http.HttpServer} and {@link io.vertx.ext.web.client.WebClient}.
27
30
*/
28
31
@ParametersAreNonnullByDefault
29
32
publicfinalclassVertxMessageFactory {
@@ -36,7 +39,8 @@ private VertxMessageFactory() {
36
39
*
37
40
* @param headers Http headers
38
41
* @param body nullable buffer of the body
39
-
* @return a Message implementation with potentially an unknown encoding
42
+
* @return a {@link MessageReader} implementation
43
+
* @throws CloudEventRWException if the encoding is unknown or something went wrong while parsing the headers
0 commit comments