Lines Matching refs:cmd

473     /** Sends command <i>cmd</i> to the server. */
474 private void sendServer(String cmd) {
475 out.print(cmd);
477 logger.finest("Server [" + serverAddr + "] <-- " + cmd);
517 * @param cmd
521 private boolean issueCommand(String cmd) throws IOException {
532 sendServer(cmd + "\r\n");
539 * @param cmd String containing the command
543 private void issueCommandCheck(String cmd) throws sun.net.ftp.FtpProtocolException, IOException {
544 if (!issueCommand(cmd)) {
545 throw new sun.net.ftp.FtpProtocolException(cmd + ":" + getResponseString(), getLastReplyCode());
558 private Socket openPassiveDataConnection(String cmd) throws sun.net.ftp.FtpProtocolException, IOException {
606 // EPSV ALL failed, so Let's try the regular PASV cmd
686 if (!issueCommand(cmd)) {
690 throw new FileNotFoundException(cmd);
692 throw new sun.net.ftp.FtpProtocolException(cmd + ":" + getResponseString(), getLastReplyCode());
701 * @param cmd the <code>String</code> containing the command to execute
705 private Socket openDataConnection(String cmd) throws sun.net.ftp.FtpProtocolException, IOException {
710 return openPassiveDataConnection(cmd);
743 // EPRT cmd then the actual command) to decide wether we should
747 if (!issueCommand(portCmd) || !issueCommand(cmd)) {
760 issueCommandCheck(cmd);
1320 String cmd = unique ? "STOU " : "STOR ";
1321 Socket s = openDataConnection(cmd + name);
1348 String cmd = unique ? "STOU " : "STOR ";
1351 Socket s = openDataConnection(cmd + name);
1657 String cmd = "NOOP";
1661 cmd = "TYPE A";
1664 cmd = "TYPE I";
1667 cmd = "TYPE E";
1669 issueCommandCheck(cmd);
2166 * @param cmd the command for which the help is requested or
2172 public String getHelp(String cmd) throws sun.net.ftp.FtpProtocolException, IOException {
2173 issueCommandCheck("HELP " + cmd);
2211 * @param cmd the command to be sent.
2215 public sun.net.ftp.FtpClient siteCmd(String cmd) throws sun.net.ftp.FtpProtocolException, IOException {
2216 issueCommandCheck("SITE " + cmd);