Package org.apache.ftpserver.util

Examples of org.apache.ftpserver.util.IllegalPortException


        try {
            address = SocketAddressEncoder.decode(request.getArgument());
           
            // port must not be 0
            if(address.getPort() == 0) {
              throw new IllegalPortException("PORT port must not be 0");
            }
        } catch (IllegalInetAddressException e) {
            session.write(LocalizedFtpReply.translate(session, request, context,
                FtpReply.REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS, "PORT", null));
            return;
View Full Code Here


        try {
            address = SocketAddressEncoder.decode(request.getArgument());
           
            // port must not be 0
            if(address.getPort() == 0) {
              throw new IllegalPortException("PORT port must not be 0");
            }
        } catch (IllegalInetAddressException e) {
            session.write(LocalizedFtpReply.translate(session, request, context,
                FtpReply.REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS, "PORT", null));
            return;
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.util.IllegalPortException

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.