Package org.apache.james.dnsservice.library.inetnetwork

Examples of org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder


            public int compare(InetNetwork in1, InetNetwork in2) {
                return in1.toString().compareTo(in2.toString());
            }
        });

        final InetNetworkBuilder inetNetwork = new InetNetworkBuilder(dnsServer);

        for (String net : nets) {
            try {
                InetNetwork inet = inetNetwork.getFromString(net);
                networks.add(inet);
            } catch (UnknownHostException uhe) {
                log("Cannot resolve address: " + uhe.getMessage());
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder

Copyright © 2018 www.massapicom. 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.