1 /**
2 This file is part of GoldenGate Project (named also GoldenGate or GG).
3
4 Copyright 2009, Frederic Bregier, and individual contributors by the @author
5 tags. See the COPYRIGHT.txt in the distribution for a full listing of
6 individual contributors.
7
8 All GoldenGate Project is free software: you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as published
10 by the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 GoldenGate is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GoldenGate . If not, see <http://www.gnu.org/licenses/>.
20 */
21 package goldengate.common.command;
22
23 /**
24 * Used by Authentication step in order to allow a specific command to be
25 * accepted after the current command. If null is specified, any command is
26 * valid. Specify also the reply code and the associated message.
27 *
28 * @author Frederic Bregier
29 *
30 */
31 public class NextCommandReply {
32 /**
33 * Command to be accepted next time
34 */
35 public Enum<?> command = null;
36
37 /**
38 * Reply to do to the Ftp client
39 */
40 public ReplyCode reply = null;
41
42 /**
43 * Message
44 */
45 public String message = null;
46
47 /**
48 * @param command
49 * @param reply
50 * @param message
51 */
52 public NextCommandReply(Enum<?> command, ReplyCode reply, String message) {
53 this.command = command;
54 this.reply = reply;
55 this.message = message;
56 }
57 }