/** * {@inheritDoc} */ public String getName() { return wrapped.getName(); } }
public HelpMessage getHelp() throws CommandException { return wrapped.getHelp(); }
/** */ public void handleCommand(Session context, String commandString) throws SocketTimeoutException, IOException, DropConnectionException { try { Command command = this.getCommandFromString(commandString); command.execute(commandString, context); } catch (CommandException e) { context.sendResponse("500 " + e.getMessage()); } }
public void handleCommand(ConnectionContext context, String commandString) throws SocketTimeoutException, IOException { try { Command command = getCommandFromString(commandString); command.execute(commandString, context); } catch (CommandException e) { context.sendResponse("500 " + e.getMessage()); } }
public String getName() { return wrapped.getName(); } }
/** */ public void handleCommand(Session context, String commandString) throws SocketTimeoutException, IOException, DropConnectionException { try { Command command = this.getCommandFromString(commandString); command.execute(commandString, context); } catch (CommandException e) { context.sendResponse("500 " + e.getMessage()); } }
/** * {@inheritDoc} */ public HelpMessage getHelp() throws CommandException { return wrapped.getHelp(); }
public String getName() { return wrapped.getName(); } }
/** * {@inheritDoc} */ public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireAuth() || sess.isAuthenticated()) wrapped.execute(commandString, sess); else sess.sendResponse("530 5.7.0 Authentication required"); }
public HelpMessage getHelp() throws CommandException { return wrapped.getHelp(); }
public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireTLS() || sess.isTLSStarted()) wrapped.execute(commandString, sess); else sess.sendResponse("530 Must issue a STARTTLS command first"); }
/** * @return the HelpMessage object for the given command name (verb) * @throws CommandException */ public HelpMessage getHelp(String command) throws CommandException { return this.getCommandFromString(command).getHelp(); }
public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireTLS() || sess.isTLSStarted()) wrapped.execute(commandString, sess); else sess.sendResponse("530 Must issue a STARTTLS command first"); }
/** * @return the HelpMessage object for the given command name (verb) * @throws CommandException */ public HelpMessage getHelp(String command) throws CommandException { return this.getCommandFromString(command).getHelp(); }