Class RequestDataValueProcessorUtils


  • public final class RequestDataValueProcessorUtils
    extends Object

    Utility class used for applying the org.springframework.web.servlet.support.RequestDataValueProcessor interface to URLs and forms output by Thymeleaf.

    This Spring interface only exists since Spring 3.1, but was modified in Spring 4. This class will only apply this value processor if the version of Spring is 4 or newer.

    Since:
    2.1.0
    Author:
    Daniel Fernández
    • Method Detail

      • processAction

        public static String processAction​(org.thymeleaf.context.ITemplateContext context,
                                           String action,
                                           String httpMethod)
      • processFormFieldValue

        public static String processFormFieldValue​(org.thymeleaf.context.ITemplateContext context,
                                                   String name,
                                                   String value,
                                                   String type)
      • getExtraHiddenFields

        public static Map<String,​String> getExtraHiddenFields​(org.thymeleaf.context.ITemplateContext context)
      • processUrl

        public static String processUrl​(org.thymeleaf.context.ITemplateContext context,
                                        String url)
      • main

        public static void main​(String[] args)