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
These changes are now feasible with #1905, it provides static accessors for reader and writer instances and replaces the old marshall / unmarshall variants on the reader and writer context that take an operator class with an operator instance.
Note that this change does not break any existing API, so it can be added later.
It seems that it should also be the default way the Helidon built-in service deal with media types.
The text was updated successfully, but these errors were encountered:
Example:
Explicitly use the JSON-P writer to send a
JsonObject
instance as a server response payload:Use the JSON-P reader to explicitly consume a server request payload:
This can be implemented with default methods on
MessageBodyReader
andMessageBodyWriter
:MessageBodyReader:
MessageBodyWriter:
The marshall method added on
MessageBodyWriter
requires a new variant ofServerResponse.send
:It would also require a new variant of
WebClientRequestBuilder.submit
:These changes are now feasible with #1905, it provides static accessors for reader and writer instances and replaces the old marshall / unmarshall variants on the reader and writer context that take an operator class with an operator instance.
Note that this change does not break any existing API, so it can be added later.
It seems that it should also be the default way the Helidon built-in service deal with media types.
The text was updated successfully, but these errors were encountered: