Package org.apache.ftpserver

Examples of org.apache.ftpserver.IODataConnectionFactory


  public synchronized ServerDataConnectionFactory getDataConnection() {
    if(containsAttribute(ATTRIBUTE_DATA_CONNECTION)) {
      return (ServerDataConnectionFactory) getAttribute(ATTRIBUTE_DATA_CONNECTION);
    } else {
      IODataConnectionFactory dataCon = new IODataConnectionFactory(context, this);
      dataCon.setServerControlAddress(((InetSocketAddress)getLocalAddress()).getAddress());
      setAttribute(ATTRIBUTE_DATA_CONNECTION, dataCon);
     
      return dataCon;
    }
  }
View Full Code Here


    public synchronized ServerDataConnectionFactory getDataConnection() {
        if (containsAttribute(ATTRIBUTE_DATA_CONNECTION)) {
            return (ServerDataConnectionFactory) getAttribute(ATTRIBUTE_DATA_CONNECTION);
        } else {
            IODataConnectionFactory dataCon = new IODataConnectionFactory(
                    context, this);
            dataCon
                    .setServerControlAddress(((InetSocketAddress) getLocalAddress())
                            .getAddress());
            setAttribute(ATTRIBUTE_DATA_CONNECTION, dataCon);

            return dataCon;
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.IODataConnectionFactory

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.