Class IPAddressMap.OctetPattern

java.lang.Object
java.util.BitSet
org.eclipse.jetty.util.IPAddressMap.OctetPattern
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
IPAddressMap<TYPE>

private static class IPAddressMap.OctetPattern extends BitSet
OctetPattern Represents a single octet wildcard. Matches the wildcard to the specified octet value.
  • Field Details

    • _mask

      private final BitSet _mask
  • Constructor Details

  • Method Details

    • match

      public boolean match(String value) throws IllegalArgumentException
      Match specified octet value against the wildcard
      Parameters:
      value - octet value
      Returns:
      true if specified octet value matches the wildcard
      Throws:
      IllegalArgumentException - if specified octet value is invalid
    • match

      public boolean match(int number) throws IllegalArgumentException
      Match specified octet value against the wildcard
      Parameters:
      number - octet value
      Returns:
      true if specified octet value matches the wildcard
      Throws:
      IllegalArgumentException - if specified octet value is invalid