Java Code Examples for org.springframework.web.bind.support.WebExchangeDataBinder

Following code examples demonstrate how to use org.springframework.web.bind.support.WebExchangeDataBinderfrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.web.bind.support.WebExchangeDataBinderand various code implementation of this class.

	protected WebExchangeDataBinder initDataBinder(WebExchangeDataBinder binder, ServerWebExchange exchange) {

		this.binderMethods.stream()
				.filter(binderMethod -> {
					InitBinder annotation = binderMethod.getMethodAnnotation(InitBinder.class);
					Collection<String> names = Arrays.asList(annotation.value());
					return (names.size() == 0 || names.contains(binder.getObjectName()));
				})
				.forEach(method -> invokeBinderMethod(binder, exchange, method));

		return binder;
	} 


Advertisement
Javadoc
Specialized org.springframework.validation.DataBinder to perform data binding from URL query params

or form data in the request data to Java objects. @author Rossen Stoyanchev @since 5.0

Read More
Advertisement