org.springframework.messaging.handler.annotation.support

Class PayloadArgumentResolver

  • java.lang.Object
    • org.springframework.messaging.handler.annotation.support.PayloadArgumentResolver
    • Constructor Detail

      • PayloadArgumentResolver

        public PayloadArgumentResolver(MessageConverter messageConverter)
        Create a new PayloadArgumentResolver with the given MessageConverter.
        Parameters:
        messageConverter - the MessageConverter to use (required)
        Since:
        4.0.9
      • PayloadArgumentResolver

        public PayloadArgumentResolver(MessageConverter messageConverter,
                                       Validator validator)
        Create a new PayloadArgumentResolver with the given MessageConverter and Validator.
        Parameters:
        messageConverter - the MessageConverter to use (required)
        validator - the Validator to use (optional)
      • PayloadArgumentResolver

        public PayloadArgumentResolver(MessageConverter messageConverter,
                                       Validator validator,
                                       boolean useDefaultResolution)
        Create a new PayloadArgumentResolver with the given MessageConverter and Validator.
        Parameters:
        messageConverter - the MessageConverter to use (required)
        validator - the Validator to use (optional)
        useDefaultResolution - if "true" (the default) this resolver supports all parameters; if "false" then only arguments with the @Payload annotation are supported.