Class ConstantsProcessor
- java.lang.Object
-
- net.anotheria.anosite.content.variables.ConstantsProcessor
-
- All Implemented Interfaces:
VariablesProcessor
public class ConstantsProcessor extends Object implements VariablesProcessor
Variables processor for constants. Useful for html tags with colide with variables processor syntax for example etc.- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description ConstantsProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringreplace(String prefix, String variable, String defValue, jakarta.servlet.http.HttpServletRequest req)Replace method.
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Prefix.- See Also:
- Constant Field Values
-
-
Method Detail
-
replace
public String replace(String prefix, String variable, String defValue, jakarta.servlet.http.HttpServletRequest req)
Description copied from interface:VariablesProcessorReplace method.- Specified by:
replacein interfaceVariablesProcessor- Parameters:
prefix- processor prefixvariable- variable to replacedefValue- default valuereq- request- Returns:
- replaced text
-
-