Package org.apache.ftpserver.DefaultDataConnectionConfiguration

Examples of org.apache.ftpserver.DefaultDataConnectionConfiguration.Active


                }
            }
           
            Element activeElm = SpringUtil.getChildElement(element, FtpServerNamespaceHandler.FTPSERVER_NS, "active");
            if(activeElm != null) {
                Active active = new Active();
                active.setEnable(SpringUtil.parseBoolean(activeElm, "enabled", true));
                active.setIpCheck(SpringUtil.parseBoolean(activeElm, "ip-check", false));
                active.setLocalPort(SpringUtil.parseInt(activeElm, "local-port", 0));
               
                InetAddress localAddress = SpringUtil.parseInetAddress(activeElm, "local-address");
                if(localAddress != null) {
                    active.setLocalAddress(localAddress);
                }
               
                dc.setActive(active);
            }
           
View Full Code Here


            }

            Element activeElm = SpringUtil.getChildElement(element,
                    FtpServerNamespaceHandler.FTPSERVER_NS, "active");
            if (activeElm != null) {
                Active active = new Active();
                active.setEnable(SpringUtil.parseBoolean(activeElm, "enabled",
                        true));
                active.setIpCheck(SpringUtil.parseBoolean(activeElm,
                        "ip-check", false));
                active.setLocalPort(SpringUtil.parseInt(activeElm,
                        "local-port", 0));

                InetAddress localAddress = SpringUtil.parseInetAddress(
                        activeElm, "local-address");
                if (localAddress != null) {
                    active.setLocalAddress(localAddress);
                }

                dc.setActive(active);
            }
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.DefaultDataConnectionConfiguration.Active

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.