Examples of IllegalPortException


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

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
TOP
Copyright © 2018 www.massapi.com. 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.