Package org.apache.ftpserver.DefaultDataConnectionConfiguration

Examples of org.apache.ftpserver.DefaultDataConnectionConfiguration.Passive


                dc.setActive(active);
            }
           
            Element passiveElm = SpringUtil.getChildElement(element, FtpServerNamespaceHandler.FTPSERVER_NS, "passive");
            if(passiveElm != null) {
                Passive passive = new Passive();
               
                InetAddress address = SpringUtil.parseInetAddress(passiveElm, "address");
                if(address != null) {
                    passive.setAddress(address);
                }
               
                InetAddress externalAddress = SpringUtil.parseInetAddress(passiveElm, "external-address");
                if(externalAddress != null) {
                    passive.setExternalAddress(externalAddress);
                }
               
                String ports = SpringUtil.parseString(passiveElm, "ports");
                if(ports != null) {
                    passive.setPorts(ports);
                }
                dc.setPassive(passive);
            }
        } else {
            // no data conn config element, do we still have SSL config from the parent?
View Full Code Here


            }

            Element passiveElm = SpringUtil.getChildElement(element,
                    FtpServerNamespaceHandler.FTPSERVER_NS, "passive");
            if (passiveElm != null) {
                Passive passive = new Passive();

                InetAddress address = SpringUtil.parseInetAddress(passiveElm,
                        "address");
                if (address != null) {
                    passive.setAddress(address);
                }

                InetAddress externalAddress = SpringUtil.parseInetAddress(
                        passiveElm, "external-address");
                if (externalAddress != null) {
                    passive.setExternalAddress(externalAddress);
                }

                String ports = SpringUtil.parseString(passiveElm, "ports");
                if (ports != null) {
                    passive.setPorts(ports);
                }
                dc.setPassive(passive);
            }
        } else {
            // no data conn config element, do we still have SSL config from the
View Full Code Here

TOP

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

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.