@Component(value="blFormProcessor")
@ConditionalOnTemplating
public class FormProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
<form>
element which adds a CSRF token input field to forms that are submitted
via anything but GET. This is required to properly bypass the CsrfFilter
.CsrfFilter}
Modifier and Type | Field and Description |
---|---|
protected ExploitProtectionService |
eps |
protected StaleStateProtectionService |
spps |
Constructor and Description |
---|
FormProcessor() |
Modifier and Type | Method and Description |
---|---|
org.broadleafcommerce.presentation.model.BroadleafTemplateModelModifierDTO |
getInjectedModelAndTagAttributes(String rootTagName,
Map<String,String> rootTagAttributes,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
String |
getName() |
int |
getPrecedence() |
boolean |
reprocessModel() |
protected ExploitProtectionService eps
protected StaleStateProtectionService spps
public String getName()
public int getPrecedence()
getPrecedence
in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
getPrecedence
in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
public org.broadleafcommerce.presentation.model.BroadleafTemplateModelModifierDTO getInjectedModelAndTagAttributes(String rootTagName, Map<String,String> rootTagAttributes, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
public boolean reprocessModel()
reprocessModel
in interface org.broadleafcommerce.presentation.dialect.BroadleafModelModifierProcessor
reprocessModel
in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafModelModifierProcessor
Copyright © 2022. All rights reserved.