Class SpringMVCWebProcessingContextBuilder

Object
org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
org.thymeleaf.testing.templateengine.spring6.context.web.SpringMVCWebProcessingContextBuilder
All Implemented Interfaces:
org.thymeleaf.testing.templateengine.context.IProcessingContextBuilder
Direct Known Subclasses:
SpringSecurityMVCWebProcessingContextBuilder

public class SpringMVCWebProcessingContextBuilder extends org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
  • Field Details

    • DEFAULT_BINDING_MODEL_VARIABLE_NAME

      public static final String DEFAULT_BINDING_MODEL_VARIABLE_NAME
      See Also:
    • DEFAULT_APPLICATION_CONTEXT_CONFIG_LOCATION

      public static final String DEFAULT_APPLICATION_CONTEXT_CONFIG_LOCATION
      See Also:
  • Constructor Details

    • SpringMVCWebProcessingContextBuilder

      public SpringMVCWebProcessingContextBuilder(org.thymeleaf.testing.templateengine.context.web.ITestWebExchangeBuilder testWebExchangeBuilder)
    • SpringMVCWebProcessingContextBuilder

      public SpringMVCWebProcessingContextBuilder()
  • Method Details

    • getApplicationContextConfigLocation

      public String getApplicationContextConfigLocation()
    • setApplicationContextConfigLocation

      public void setApplicationContextConfigLocation(String applicationContextConfigLocation)
    • getShareAppContextForAllTests

      public boolean getShareAppContextForAllTests()
    • setShareAppContextForAllTests

      public void setShareAppContextForAllTests(boolean shareAppContextForAllTests)
    • doAdditionalVariableProcessing

      protected final void doAdditionalVariableProcessing(org.thymeleaf.testing.templateengine.testable.ITest test, org.thymeleaf.web.IWebExchange webExchange, Locale locale, Map<String,Object> variables)
      Overrides:
      doAdditionalVariableProcessing in class org.thymeleaf.testing.templateengine.context.web.WebProcessingContextBuilder
    • initBinder

      protected void initBinder(String bindingVariableName, Object bindingObject, org.thymeleaf.testing.templateengine.testable.ITest test, org.springframework.validation.DataBinder dataBinder, Locale locale, Map<String,Object> variables)
    • initBindingResult

      protected void initBindingResult(String bindingVariableName, Object bindingObject, org.thymeleaf.testing.templateengine.testable.ITest test, org.springframework.validation.BindingResult bindingResult, Locale locale, Map<String,Object> variables)
    • createApplicationContext

      protected org.springframework.web.context.WebApplicationContext createApplicationContext(org.thymeleaf.testing.templateengine.testable.ITest test, jakarta.servlet.ServletContext servletContext, Locale locale, Map<String,Object> variables)
    • initSpring

      protected void initSpring(org.springframework.context.ApplicationContext applicationContext, org.thymeleaf.testing.templateengine.testable.ITest test, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, Locale locale, Map<String,Object> variables)