Top Description Fields Constructors Methods
org.springframework.web.reactive.result.method.annotation

pack-priv Class InitBinderBindingContext

extends BindingContext
Class Inheritance
Imports
java.util.List, org.springframework.core.ReactiveAdapterRegistry, org.springframework.lang.Nullable, org.springframework.util.Assert, .ObjectUtils, org.springframework.web.bind.annotation.InitBinder, org.springframework.web.bind.support.SessionStatus, .SimpleSessionStatus, .WebBindingInitializer, .WebExchangeDataBinder, org.springframework.web.reactive.BindingContext, .HandlerResult, org.springframework.web.reactive.result.method.SyncInvocableHandlerMethod, org.springframework.web.server.ServerWebExchange, .WebSession

Extends BindingContext with @InitBinder method initialization.
Author
Rossen Stoyanchev
Since
5.0

Field Summary

Modifier and TypeField and Description
private final BindingContext
private final List<SyncInvocableHandlerMethod>
private Runnable
private final SessionStatus

Constructor Summary

AccessConstructor and Description
pack-priv
InitBinderBindingContext(WebBindingInitializer initializer, List<SyncInvocableHandlerMethod> binderMethods, boolean methodValidationApplicable, ReactiveAdapterRegistry registry)

Method Summary

Modifier and TypeMethod and Description
public SessionStatus
getSessionStatus()

Return the SessionStatus instance to use that can be used to signal that session processing is complete.

protected WebExchangeDataBinder
initDataBinder(WebExchangeDataBinder dataBinder, ServerWebExchange exchange)

Overrides org.springframework.web.reactive.BindingContext.initDataBinder.

Initialize the data binder instance for the given exchange.

private void
public void
setSessionContext(SessionAttributesHandler attributesHandler, WebSession session)

Provide the context required to promote model attributes listed as @SessionAttributes to the session during updateModel.

public void
updateModel(ServerWebExchange
the current exchange
exchange
)

Overrides org.springframework.web.reactive.BindingContext.updateModel.

Invoked before rendering to add BindingResult attributes where necessary, and also to promote model attributes listed as @SessionAttributes to the session.

Inherited from org.springframework.web.reactive.BindingContext:
createDataBindercreateDataBindercreateDataBindergetModelsetMethodValidationApplicable

Field Detail

binderMethodContextback to summary
private final BindingContext binderMethodContext
binderMethodsback to summary
private final List<SyncInvocableHandlerMethod> binderMethods
saveModelOperationback to summary
private Runnable saveModelOperation
Annotations
@Nullable
sessionStatusback to summary
private final SessionStatus sessionStatus

Constructor Detail

InitBinderBindingContextback to summary
pack-priv InitBinderBindingContext(WebBindingInitializer initializer, List<SyncInvocableHandlerMethod> binderMethods, boolean methodValidationApplicable, ReactiveAdapterRegistry registry)

Method Detail

getSessionStatusback to summary
public SessionStatus getSessionStatus()

Return the SessionStatus instance to use that can be used to signal that session processing is complete.

initDataBinderback to summary
protected WebExchangeDataBinder initDataBinder(WebExchangeDataBinder dataBinder, ServerWebExchange exchange)

Overrides org.springframework.web.reactive.BindingContext.initDataBinder.

Doc from org.springframework.web.reactive.BindingContext.initDataBinder.

Initialize the data binder instance for the given exchange.

Annotations
@Override
invokeBinderMethodback to summary
private void invokeBinderMethod(WebExchangeDataBinder dataBinder, ServerWebExchange exchange, SyncInvocableHandlerMethod binderMethod)
setSessionContextback to summary
public void setSessionContext(SessionAttributesHandler attributesHandler, WebSession session)

Provide the context required to promote model attributes listed as @SessionAttributes to the session during updateModel.

updateModelback to summary
public void updateModel(ServerWebExchange exchange)

Overrides org.springframework.web.reactive.BindingContext.updateModel.

Doc from org.springframework.web.reactive.BindingContext.updateModel.

Invoked before rendering to add BindingResult attributes where necessary, and also to promote model attributes listed as @SessionAttributes to the session.

Parameters
exchange:ServerWebExchange

the current exchange

Annotations
@Override