Class WebEngineContext

  • All Implemented Interfaces:
    org.thymeleaf.context.IContext, org.thymeleaf.context.IEngineContext, org.thymeleaf.context.IExpressionContext, org.thymeleaf.context.ITemplateContext

    public class WebEngineContext
    extends org.thymeleaf.context.EngineContext
    Implementation of the IEngineContext interface for web processing.
    Since:
    1.1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      WebEngineContext​(org.thymeleaf.IEngineConfiguration configuration, org.thymeleaf.engine.TemplateData templateData, java.util.Map<java.lang.String,​java.lang.Object> templateResolutionAttributes, io.micronaut.http.HttpRequest<?> request, java.util.Locale locale, java.util.Map<java.lang.String,​java.lang.Object> variables)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.http.HttpRequest<?> getRequest()  
      • Methods inherited from class org.thymeleaf.context.EngineContext

        containsVariable, decreaseLevel, getElementStack, getElementStackAbove, getInliner, getSelectionTarget, getStringRepresentationByLevel, getTemplateData, getTemplateStack, getVariable, getVariableNames, hasSelectionTarget, increaseLevel, isVariableLocal, level, removeVariable, setElementTag, setInliner, setSelectionTarget, setTemplateData, setVariable, setVariables, toString
      • Methods inherited from class org.thymeleaf.context.AbstractEngineContext

        buildLink, getConfiguration, getExpressionObjects, getIdentifierSequences, getLocale, getMessage, getModelFactory, getTemplateMode, getTemplateResolutionAttributes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.thymeleaf.context.IContext

        getLocale
      • Methods inherited from interface org.thymeleaf.context.IExpressionContext

        getConfiguration, getExpressionObjects
      • Methods inherited from interface org.thymeleaf.context.ITemplateContext

        buildLink, getIdentifierSequences, getMessage, getModelFactory, getTemplateMode, getTemplateResolutionAttributes
    • Constructor Detail

      • WebEngineContext

        public WebEngineContext​(org.thymeleaf.IEngineConfiguration configuration,
                                org.thymeleaf.engine.TemplateData templateData,
                                java.util.Map<java.lang.String,​java.lang.Object> templateResolutionAttributes,
                                @Nullable
                                io.micronaut.http.HttpRequest<?> request,
                                java.util.Locale locale,
                                java.util.Map<java.lang.String,​java.lang.Object> variables)
        Parameters:
        configuration - the configuration instance being used.
        templateData - the template data for the template to be processed.
        templateResolutionAttributes - the template resolution attributes.
        request - HTTP request.
        locale - the locale.
        variables - the context variables, probably coming from another IContext implementation.
        See Also:
        EngineContext#EngineContext(IEngineConfiguration, TemplateData, Map, Locale, Map).
    • Method Detail

      • getRequest

        @Nullable
        public io.micronaut.http.HttpRequest<?> getRequest()
        Returns:
        HTTP request.