Package com.hubspot.jinjava.lib.filter
Class IpAddrFilter
- java.lang.Object
-
- com.hubspot.jinjava.lib.filter.IpAddrFilter
-
- All Implemented Interfaces:
Filter
,Importable
- Direct Known Subclasses:
Ipv4Filter
,Ipv6Filter
public class IpAddrFilter extends Object implements Filter
-
-
Constructor Summary
Constructors Constructor Description IpAddrFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
filter(Object object, JinjavaInterpreter interpreter, String... args)
Filter the specified template variable within the context of a render process.String
getName()
boolean
preserveSafeString()
protected boolean
validIp(String address)
protected boolean
validIpv4(String address)
protected boolean
validIpv6(String address)
-
-
-
Method Detail
-
filter
public Object filter(Object object, JinjavaInterpreter interpreter, String... args)
Description copied from interface:Filter
Filter the specified template variable within the context of a render process. {{ myvar|myfiltername(arg1,arg2) }}
-
validIp
protected boolean validIp(String address)
-
validIpv4
protected boolean validIpv4(String address)
-
validIpv6
protected boolean validIpv6(String address)
-
preserveSafeString
public boolean preserveSafeString()
- Specified by:
preserveSafeString
in interfaceFilter
-
getName
public String getName()
- Specified by:
getName
in interfaceImportable
-
-