Class IpAddrFilter

    • Constructor Detail

      • IpAddrFilter

        public IpAddrFilter()
    • 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) }}
        Specified by:
        filter in interface Filter
        Parameters:
        object - the variable which this filter should operate on
        interpreter - current interpreter context
        args - any arguments passed to this filter invocation
        Returns:
        the filtered form of the given variable
      • validIp

        protected boolean validIp​(String address)
      • validIpv4

        protected boolean validIpv4​(String address)
      • validIpv6

        protected boolean validIpv6​(String address)