Class RenderingContext
java.lang.Object
org.springframework.web.reactive.result.view.script.RenderingContext
Context passed to 
ScriptTemplateView render function in order to make
 the application context, the locale, the template loader and the url available on
 scripting side.- Since:
 - 5.0
 - Author:
 - Sebastien Deleuze
 
- 
Constructor Summary
ConstructorsConstructorDescriptionRenderingContext(ApplicationContext applicationContext, Locale locale, Function<String, String> templateLoader, String url) Create a newRenderingContext. - 
Method Summary
Modifier and TypeMethodDescriptionReturn the application context.Return the locale of the rendered template.Return a function that takes a template path as input and returns the template content as a String.getUrl()Return the URL of the rendered template. 
- 
Constructor Details
- 
RenderingContext
public RenderingContext(ApplicationContext applicationContext, Locale locale, Function<String, String> templateLoader, String url) Create a newRenderingContext.- Parameters:
 applicationContext- the application contextlocale- the locale of the rendered templatetemplateLoader- a function that takes a template path as input and returns the template content as a Stringurl- the URL of the rendered template
 
 - 
 - 
Method Details
- 
getApplicationContext
Return the application context. - 
getLocale
Return the locale of the rendered template. - 
getTemplateLoader
Return a function that takes a template path as input and returns the template content as a String. - 
getUrl
Return the URL of the rendered template. 
 -