Class IPSubnetConverter

java.lang.Object
org.graylog2.utilities.IPSubnetConverter
All Implemented Interfaces:
com.github.joschi.jadconfig.Converter<Set<IpSubnet>>

public class IPSubnetConverter extends Object implements com.github.joschi.jadconfig.Converter<Set<IpSubnet>>
Converts a comma separated list of IP addresses / sub nets to set of IpSubnet.
  • Constructor Details

    • IPSubnetConverter

      public IPSubnetConverter()
  • Method Details

    • convertFrom

      public Set<IpSubnet> convertFrom(String value)
      Specified by:
      convertFrom in interface com.github.joschi.jadconfig.Converter<Set<IpSubnet>>
    • convertTo

      public String convertTo(Set<IpSubnet> value)
      Specified by:
      convertTo in interface com.github.joschi.jadconfig.Converter<Set<IpSubnet>>