org.broadleafcommerce.core.web.processor
Class FormProcessor

java.lang.Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.element.AbstractElementProcessor
          extended by org.broadleafcommerce.core.web.processor.FormProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

public class FormProcessor
extends org.thymeleaf.processor.element.AbstractElementProcessor

A Thymeleaf processor that adds a CSRF token to forms that are not going to be submitted via GET

Author:
apazzolini

Constructor Summary
FormProcessor()
          Sets the name of this processor to be used in Thymeleaf template
 
Method Summary
 int getPrecedence()
          We need this replacement to execute as early as possible to allow subsequent processors to act on this element as if it were a normal form instead of a blc:form
protected  org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
           
 
Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormProcessor

public FormProcessor()
Sets the name of this processor to be used in Thymeleaf template

Method Detail

getPrecedence

public int getPrecedence()
We need this replacement to execute as early as possible to allow subsequent processors to act on this element as if it were a normal form instead of a blc:form

Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor

processElement

protected org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments,
                                                                 org.thymeleaf.dom.Element element)
Specified by:
processElement in class org.thymeleaf.processor.element.AbstractElementProcessor


Copyright © 2013. All Rights Reserved.