Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jackson @JsonView deserialization support for @MessageMapping payloads [SPR-13265] #17856

Closed
spring-projects-issues opened this issue Jul 22, 2015 · 1 comment
Assignees
Labels
in: messaging Issues in messaging modules (jms, messaging) in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jul 22, 2015

Juergen Hoeller opened SPR-13265 and commented

#17338 introduced support for @JsonView for response messages returned from @MessageMapping methods. For completeness, we should also support @JsonView for the payloads of incoming messages, along the lines of #17106 which introduced analogous support for HTTP request bodies. This effort also provides an opportunity to fine-tune the MethodParameter passing into our MessageConverter infrastructure, as introduced in 4.2 RC1.


Affects: 4.2 RC1

Issue Links:

Referenced from: commits 0f54f68, 02d05ed

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This is committed now, as a revision of AbstractMessageConverter which provides overloaded methods with a conversion hint, MappingJackson2MessageConverter taking that hint into account, and SimpMessagingTemplate transforming such a hint in the given headers map into an explicit argument for the AbstractMessageConverter invocation.

The hint itself may be a MethodParameter, a JsonView instance, or a view Class directly. Programmatic SimpMessagingTemplate invocations may specify all of these variants already, even if our own handler method code just uses MethodParameter hints for its own SimpMessagingTemplate invocations at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants