/** * Sets the subnets to be blacklisted. * * NOTE: this call will remove any previously blacklisted subnets. * * @param subnets an array of subnets to be blacklisted. */ public void setSubnetBlacklist(Iterable<Subnet> subnets) { if (subnets == null) { throw new IllegalArgumentException("Subnets must not be null"); } blacklist.clear(); for (Subnet subnet : subnets) { block(subnet); } }
/** * Sets the subnets to be blacklisted. * * NOTE: this call will remove any previously blacklisted subnets. * * @param subnets an array of subnets to be blacklisted. */ public void setSubnetBlacklist(Iterable<Subnet> subnets) { if (subnets == null) { throw new NullPointerException("Subnets must not be null"); } blacklist.clear(); for (Subnet subnet : subnets) { block(subnet); } }
/** * Sets the addresses to be blacklisted. * * NOTE: this call will remove any previously blacklisted addresses. * * @param addresses an array of addresses to be blacklisted. */ public void setBlacklist(InetAddress[] addresses) { if (addresses == null) { throw new IllegalArgumentException("addresses"); } blacklist.clear(); for (int i = 0; i < addresses.length; i++) { InetAddress addr = addresses[i]; block(addr); } }
/** * Sets the subnets to be blacklisted. * * NOTE: this call will remove any previously blacklisted subnets. * * @param subnets an array of subnets to be blacklisted. */ public void setSubnetBlacklist(Subnet[] subnets) { if (subnets == null) { throw new IllegalArgumentException("Subnets must not be null"); } blacklist.clear(); for (Subnet subnet : subnets) { block(subnet); } }
/** * Sets the subnets to be blacklisted. * * NOTE: this call will remove any previously blacklisted subnets. * * @param subnets an array of subnets to be blacklisted. */ public void setSubnetBlacklist(Iterable<Subnet> subnets) { if (subnets == null) { throw new IllegalArgumentException("Subnets must not be null"); } blacklist.clear(); for (Subnet subnet : subnets) { block(subnet); } }
/** * Sets the subnets to be blacklisted. * * NOTE: this call will remove any previously blacklisted subnets. * * @param subnets an array of subnets to be blacklisted. */ public void setSubnetBlacklist(Subnet[] subnets) { if (subnets == null) { throw new NullPointerException("Subnets must not be null"); } blacklist.clear(); for (Subnet subnet : subnets) { block(subnet); } }
/** * Sets the addresses to be blacklisted. * * NOTE: this call will remove any previously blacklisted addresses. * * @param addresses a collection of InetAddress objects representing the * addresses to be blacklisted. * @throws IllegalArgumentException if the specified collections contains * non-{@link InetAddress} objects. */ public void setBlacklist(Iterable<InetAddress> addresses) { if (addresses == null) { throw new IllegalArgumentException("addresses"); } blacklist.clear(); for (InetAddress address : addresses) { block(address); } }
/** * Sets the addresses to be blacklisted. * * NOTE: this call will remove any previously blacklisted addresses. * * @param addresses an array of addresses to be blacklisted. */ public void setBlacklist(InetAddress[] addresses) { if (addresses == null) { throw new NullPointerException("addresses"); } blacklist.clear(); for (int i = 0; i < addresses.length; i++) { InetAddress addr = addresses[i]; block(addr); } }
/** * Sets the subnets to be blacklisted. * * NOTE: this call will remove any previously blacklisted subnets. * * @param subnets an array of subnets to be blacklisted. */ public void setSubnetBlacklist(Subnet[] subnets) { if (subnets == null) { throw new IllegalArgumentException("Subnets must not be null"); } blacklist.clear(); for (Subnet subnet : subnets) { block(subnet); } }
/** * Sets the addresses to be blacklisted. * * NOTE: this call will remove any previously blacklisted addresses. * * @param addresses an array of addresses to be blacklisted. */ public void setBlacklist(InetAddress[] addresses) { if (addresses == null) { throw new IllegalArgumentException("addresses"); } blacklist.clear(); for (int i = 0; i < addresses.length; i++) { InetAddress addr = addresses[i]; block(addr); } }
/** * Sets the addresses to be blacklisted. * * NOTE: this call will remove any previously blacklisted addresses. * * @param addresses a collection of InetAddress objects representing the * addresses to be blacklisted. * @throws IllegalArgumentException if the specified collections contains * non-{@link InetAddress} objects. */ public void setBlacklist(Iterable<InetAddress> addresses) { if (addresses == null) { throw new IllegalArgumentException("addresses"); } blacklist.clear(); for (InetAddress address : addresses) { block(address); } }
/** * Blocks the specified endpoint. * * @param address The address to block */ public void block(InetAddress address) { if (address == null) { throw new IllegalArgumentException("Adress to block can not be null"); } block(new Subnet(address, 32)); }
/** * Sets the addresses to be blacklisted. * * NOTE: this call will remove any previously blacklisted addresses. * * @param addresses a collection of InetAddress objects representing the * addresses to be blacklisted. * @throws IllegalArgumentException if the specified collections contains * non-{@link InetAddress} objects. */ public void setBlacklist(Iterable<InetAddress> addresses) { if (addresses == null) { throw new NullPointerException("addresses"); } blacklist.clear(); for( InetAddress address : addresses ){ block(address); } }
/** * Blocks the specified endpoint. * * @param address The address to block */ public void block(InetAddress address) { if (address == null) { throw new IllegalArgumentException("Adress to block can not be null"); } block(new Subnet(address, 32)); }
/** * Blocks the specified endpoint. */ public void block(InetAddress address) { if (address == null) { throw new NullPointerException("Adress to block can not be null"); } block(new Subnet(address, 32)); }