1 21 package org.jsmtpd.core.common.smtpExtension; 22 23 import java.io.IOException ; 24 import java.net.Socket ; 25 import java.util.List ; 26 27 import org.jsmtpd.core.mail.Email; 28 29 32 public interface IProtocolHandler { 33 34 public void setRelayed(boolean value); 35 36 public boolean isRelayed(); 37 38 public Socket getSock(); 39 40 public void setSock(Socket sock) throws IOException ; 41 42 public boolean isSecured(); 43 44 public void setSecured(boolean secured); 45 46 public List getCommandHistory(); 47 48 public void addCommandHistory(String command); 49 50 public void setAuthContext(String context); 51 52 public Email getMail (); 53 } | Popular Tags |