Skip to content

DefaultResponseErrorHandler - setMessageConverters() not called via RestClient #36434

@sparecycles

Description

@sparecycles

The DefaultResponseErrorHandler's initBodyConvertFunction() is not directly usable in subclasses since the messageConverters are not set via the RestClient stack, (as it is when used with a RestTemplate).

Is making setMessageConverters protected instead of package-protected an option? (Extending this class to get the body convert function is useful for potentially deserializing error response bodies.)

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions