Examples of transferToClient()


Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

            // transfer listing data
            boolean failure = false;

            try {
                dataConnection.transferToClient(session.getFtpletSession(), directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(),
                        LIST_FILE_FORMATER));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during list transfer", ex);
                failure = true;
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

                    formater = LIST_FILE_FORMATER;
                } else {
                    formater = NLST_FILE_FORMATER;
                }

                dataConnection.transferToClient(session.getFtpletSession(), directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(), formater));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during data transfer", ex);
                failure = true;
                session.write(LocalizedFtpReply.translate(session, request, context,
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

                // open streams
                is = openInputStream(session, file, skipLen);

                // transfer data
                long transSz = dataConnection.transferToClient(session.getFtpletSession(), is);
                // attempt to close the input stream so that errors in
                // closing it will return an error to the client (FTPSERVER-119)
                if(is != null) {
                    is.close();
                }
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

                        .getArgument());

                FileFormater formater = new MLSTFileFormater((String[]) session
                        .getAttribute("MLST.types"));

                dataConnection.transferToClient(session.getFtpletSession(), directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(), formater));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during data transfer", ex);
                failure = true;
                session.write(LocalizedFtpReply.translate(session, request, context,
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

            // transfer listing data
            boolean failure = false;

            try {
                dataConnection.transferToClient(session.getFtpletSession(), directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(),
                        LIST_FILE_FORMATER));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during list transfer", ex);
                failure = true;
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

                    formater = LIST_FILE_FORMATER;
                } else {
                    formater = NLST_FILE_FORMATER;
                }

                dataConnection.transferToClient(session.getFtpletSession(), directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(), formater));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during data transfer", ex);
                failure = true;
                session.write(LocalizedFtpReply.translate(session, request, context,
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

                // open streams
                is = openInputStream(session, file, skipLen);

                // transfer data
                long transSz = dataConnection.transferToClient(session.getFtpletSession(), is);

                LOG.info("File downloaded {}", fileName);

                // notify the statistics component
                ServerFtpStatistics ftpStat = (ServerFtpStatistics) context
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

                    formater = LIST_FILE_FORMATER;
                } else {
                    formater = NLST_FILE_FORMATER;
                }

                dataConnection.transferToClient(directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(), formater));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during data transfer", ex);
                failure = true;
                session.write(FtpReplyUtil.translate(session, request, context,
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

                        .getArgument());

                FileFormater formater = new MLSTFileFormater((String[]) session
                        .getAttribute("MLST.types"));

                dataConnection.transferToClient(directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(), formater));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during data transfer", ex);
                failure = true;
                session.write(FtpReplyUtil.translate(session, request, context,
View Full Code Here

Examples of org.apache.ftpserver.ftplet.DataConnection.transferToClient()

            try {
                // parse argument
                ListArgument parsedArg = ListArgumentParser.parse(request
                        .getArgument());

                dataConnection.transferToClient(directoryLister.listFiles(
                        parsedArg, session.getFileSystemView(),
                        LIST_FILE_FORMATER));
            } catch (SocketException ex) {
                LOG.debug("Socket exception during list transfer", ex);
                failure = true;
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.