Package org.springframework.messaging.handler.annotation

Examples of org.springframework.messaging.handler.annotation.Payload.required()


      throw new IllegalStateException("@Payload SpEL expressions not supported by this resolver");
    }

    Object payload = message.getPayload();
    if (isEmptyPayload(payload)) {
      if (annot == null || annot.required()) {
        String paramName = getParameterName(param);
        BindingResult bindingResult = new BeanPropertyBindingResult(payload, paramName);
        bindingResult.addError(new ObjectError(paramName, "@Payload param is required"));
        throw new MethodArgumentNotValidException(message, param, bindingResult);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.