1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.mercury.smtp.command;
14
15 import java.io.IOException;
16
17 import org.abstracthorizon.mercury.common.command.CommandException;
18 import org.abstracthorizon.mercury.smtp.SMTPResponses;
19 import org.abstracthorizon.mercury.smtp.SMTPSession;
20 import org.abstracthorizon.mercury.smtp.exception.ParserException;
21
22
23
24
25
26
27 public class NotImplementedCommand extends SMTPCommand {
28
29
30 protected String error;
31
32
33
34
35 public NotImplementedCommand() {
36 }
37
38
39
40
41
42 public void setErrorString(String error) {
43 this.error = error;
44 }
45
46
47
48
49
50
51
52
53 protected void execute(SMTPSession connection) throws CommandException, IOException, ParserException {
54 connection.getScanner().skip_line();
55 connection.sendResponse(SMTPResponses.COMMAND_NOT_IMPLEMENTED_RESPONSE);
56 }
57
58 }