Class ExtendedWebExchangeDataBinder
java.lang.Object
org.springframework.validation.DataBinder
org.springframework.web.bind.WebDataBinder
org.springframework.web.bind.support.WebExchangeDataBinder
org.springframework.web.reactive.result.method.annotation.ExtendedWebExchangeDataBinder
- All Implemented Interfaces:
- PropertyEditorRegistry,- TypeConverter
Extended variant of 
WebExchangeDataBinder that adds URI path variables
 and request headers to the bind values map.
 Note: This class has existed since 5.0, but only as a private class within
 BindingContext.
- Since:
- 6.2.1
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.validation.DataBinderDataBinder.NameResolver, DataBinder.ValueResolver
- 
Field SummaryFields inherited from class org.springframework.web.bind.WebDataBinderDEFAULT_FIELD_DEFAULT_PREFIX, DEFAULT_FIELD_MARKER_PREFIXFields inherited from class org.springframework.validation.DataBinderDEFAULT_AUTO_GROW_COLLECTION_LIMIT, DEFAULT_OBJECT_NAME, logger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddHeaderPredicate(Predicate<String> headerPredicate) Add a Predicate that filters the header names to use for data binding.getValuesToBind(ServerWebExchange exchange) Obtain the values for data binding.voidsetHeaderPredicate(Predicate<String> headerPredicate) Set the Predicate that filters the header names to use for data binding.Methods inherited from class org.springframework.web.bind.support.WebExchangeDataBinderaddBindValue, bind, construct, extractValuesToBind, shouldConstructArgumentMethods inherited from class org.springframework.web.bind.WebDataBinderadaptEmptyArrayIndices, bindMultipart, checkFieldDefaults, checkFieldMarkers, doBind, getEmptyValue, getEmptyValue, getFieldDefaultPrefix, getFieldMarkerPrefix, isBindEmptyMultipartFiles, resolvePrefixValue, setBindEmptyMultipartFiles, setFieldDefaultPrefix, setFieldMarkerPrefixMethods inherited from class org.springframework.validation.DataBinderaddCustomFormatter, addCustomFormatter, addCustomFormatter, addValidators, applyPropertyValues, bind, checkAllowedFields, checkRequiredFields, close, construct, convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary, createBeanPropertyBindingResult, createDirectFieldBindingResult, findCustomEditor, getAllowedFields, getAutoGrowCollectionLimit, getBindingErrorProcessor, getBindingResult, getConversionService, getDisallowedFields, getInternalBindingResult, getNameResolver, getObjectName, getPropertyAccessor, getPropertyEditorRegistry, getRequiredFields, getSimpleTypeConverter, getTarget, getTargetType, getTypeConverter, getValidator, getValidators, getValidatorsToApply, initBeanPropertyAccess, initDirectFieldAccess, isAllowed, isAutoGrowNestedPaths, isDeclarativeBinding, isIgnoreInvalidFields, isIgnoreUnknownFields, registerCustomEditor, registerCustomEditor, replaceValidators, setAllowedFields, setAutoGrowCollectionLimit, setAutoGrowNestedPaths, setBindingErrorProcessor, setConversionService, setDeclarativeBinding, setDisallowedFields, setExcludedValidators, setIgnoreInvalidFields, setIgnoreUnknownFields, setMessageCodesResolver, setNameResolver, setRequiredFields, setTargetType, setValidator, shouldNotBindPropertyValues, validate, validate
- 
Constructor Details- 
ExtendedWebExchangeDataBinder
 
- 
- 
Method Details- 
addHeaderPredicateAdd a Predicate that filters the header names to use for data binding. Multiple predicates are combined withAND.- Parameters:
- headerPredicate- the predicate to add
- Since:
- 6.2.1
 
- 
setHeaderPredicateSet the Predicate that filters the header names to use for data binding.Note that this method resets any previous predicates that may have been set, including headers excluded by default such as the RFC 9218 defined "Priority" header. - Parameters:
- headerPredicate- the predicate to add
- Since:
- 6.2.1
 
- 
getValuesToBindDescription copied from class:WebExchangeDataBinderObtain the values for data binding. By default, this delegates toWebExchangeDataBinder.extractValuesToBind(ServerWebExchange).- Overrides:
- getValuesToBindin class- WebExchangeDataBinder
- Parameters:
- exchange- the current exchange
- Returns:
- a map of bind values
 
 
-