Package org.apache.ftpserver.ipfilter

Examples of org.apache.ftpserver.ipfilter.DefaultIpFilter.addAll()


        return null;
      }
    //Initialize the IP filter with Deny type
    DefaultIpFilter ipFilter = new DefaultIpFilter(IpFilterType.DENY);
    if(blockedSubnets != null) {
      ipFilter.addAll(blockedSubnets);
    }
    if(blockedAddresses != null) {
      for(InetAddress address:blockedAddresses) {
        ipFilter.add(new Subnet(address, 32));
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.