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.

    Given this Spring interface only exists since Spring 3.1, application is conditional and only performed if Spring version in classpath is 3.1 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)