mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
98d7073370
When a header is being set, verify that the type that's provided is legal for the header that's been set. For example, the error channel's type must be a MessageChannel or a String. The method that performs type verification is protected so that it can be overriden by sub-classes. It is expected that an overriding method will call the super method.