1 8 9 package mx4j.tools.mail; 10 11 import javax.management.ObjectName ; 12 13 37 public interface SMTPMBean 38 { 39 42 public ObjectName getObservedObject(); 43 44 48 public void setObservedObject(ObjectName targetMBeanName); 49 50 53 public String getNotificationName(); 54 55 59 public void setNotificationName(String notificationName); 60 61 64 public String getServerHost(); 65 66 69 public void setServerHost(String host); 70 71 74 public void setServerPort(int port); 75 76 79 public int getServerPort(); 80 81 84 public void setServerUsername(String username); 85 86 89 public String getServerUsername(); 90 91 94 public void setServerPassword(String password); 95 96 99 public void setLoginToServer(boolean login); 100 101 104 public boolean isLoginToServer(); 105 106 109 public void setTimeout(int timeout); 110 111 114 public int getTimeout(); 115 116 119 public String getFromAddress(); 120 121 124 public void setFromAddress(String fromAddress); 125 126 129 public String getFromName(); 130 131 134 public void setFromName(String fromName); 135 136 139 public String getMimeType(); 140 141 144 public void setMimeType(String mimeType); 145 146 149 public String getTo(); 150 151 154 public void setTo(String toAddresses); 155 156 159 public String getBCC(); 160 161 164 public void setBCC(String bccAddresses); 165 166 169 public String getCC(); 170 171 174 public void setCC(String ccAddresses); 175 176 179 public String getSubject(); 180 181 184 public void setSubject(String subject); 185 186 189 public String getContent(); 190 191 194 public void setContent(String content); 195 196 199 public void sendMail(); 200 201 } 202 | Popular Tags |