org.thymeleaf.spring3.processor.attr
Class SpringMethodAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
              extended by org.thymeleaf.processor.attr.AbstractSingleAttributeModifierAttrProcessor
                  extended by org.thymeleaf.standard.processor.attr.AbstractStandardSingleAttributeModifierAttrProcessor
                      extended by org.thymeleaf.spring3.processor.attr.SpringMethodAttrProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

public final class SpringMethodAttrProcessor
extends org.thymeleaf.standard.processor.attr.AbstractStandardSingleAttributeModifierAttrProcessor

Since:
2.0.3
Author:
Daniel Fernández

Nested Class Summary
 
Nested classes/interfaces inherited from class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType
 
Field Summary
static String ATTR_NAME
           
static int ATTR_PRECEDENCE
           
 
Constructor Summary
SpringMethodAttrProcessor()
           
 
Method Summary
protected  void doAdditionalProcess(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
           
protected  org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName, String newAttributeName)
           
 int getPrecedence()
           
protected  String getTargetAttributeName(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
           
protected  boolean isMethodBrowserSupported(String method)
          Determine if the HTTP method is supported by browsers (i.e.
protected  boolean removeAttributeIfEmpty(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName, String newAttributeName)
           
 
Methods inherited from class org.thymeleaf.standard.processor.attr.AbstractStandardSingleAttributeModifierAttrProcessor
getTargetAttributeValue, recomputeProcessorsAfterExecution
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractSingleAttributeModifierAttrProcessor
getModifiedAttributeValues
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
processAttribute, shouldRemoveAttribute
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_PRECEDENCE

public static final int ATTR_PRECEDENCE
See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

SpringMethodAttrProcessor

public SpringMethodAttrProcessor()
Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor

getTargetAttributeName

protected String getTargetAttributeName(org.thymeleaf.Arguments arguments,
                                        org.thymeleaf.dom.Element element,
                                        String attributeName)
Specified by:
getTargetAttributeName in class org.thymeleaf.processor.attr.AbstractSingleAttributeModifierAttrProcessor

getModificationType

protected org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(org.thymeleaf.Arguments arguments,
                                                                                                                   org.thymeleaf.dom.Element element,
                                                                                                                   String attributeName,
                                                                                                                   String newAttributeName)
Specified by:
getModificationType in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor

removeAttributeIfEmpty

protected boolean removeAttributeIfEmpty(org.thymeleaf.Arguments arguments,
                                         org.thymeleaf.dom.Element element,
                                         String attributeName,
                                         String newAttributeName)
Specified by:
removeAttributeIfEmpty in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor

doAdditionalProcess

protected void doAdditionalProcess(org.thymeleaf.Arguments arguments,
                                   org.thymeleaf.dom.Element element,
                                   String attributeName)
Overrides:
doAdditionalProcess in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor

isMethodBrowserSupported

protected boolean isMethodBrowserSupported(String method)
Determine if the HTTP method is supported by browsers (i.e. GET or POST).



Copyright © 2013 The THYMELEAF team. All Rights Reserved.