Class AllowablePortRange


  • public class AllowablePortRange
    extends Object
    Defines the allowable port range for a service to bind to, for situations where there is a restriction.
    • Constructor Detail

      • AllowablePortRange

        public AllowablePortRange​(int minPortNumber,
                                  int maxPortNumber)
        Creates a new AllowablePortRange
        Parameters:
        minPortNumber - The minimum port allowed in the range
        maxPortNumber - The maximum port allowed in the range
        Throws:
        IllegalStateException - if the minPortNumber is greater than or equal to the maxPortNumber or if either port is not valid