org.springframework.web.reactive

Class BindingContext

  • java.lang.Object
    • org.springframework.web.reactive.BindingContext


  • public class BindingContext
    extends java.lang.Object
    Context to assist with binding request data onto Objects and provide access to a shared Model with controller-specific attributes.

    Provides methods to create a WebExchangeDataBinder for a specific target, command Object to apply data binding and validation to, or without a target Object for simple type conversion from request values.

    Container for the default model for the request.

    Since:
    5.0
    Author:
    Rossen Stoyanchev
    • Constructor Detail

      • BindingContext

        public BindingContext()
        Create a new BindingContext.
      • BindingContext

        public BindingContext(@Nullable
                              WebBindingInitializer initializer)
        Create a new BindingContext with the given initializer.
        Parameters:
        initializer - the binding initializer to apply (may be null)