|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.jportlet.service.PortletServiceAdapter
|
+--net.sf.jportlet.service.mail.MailServiceImpl
| Field Summary |
| Fields inherited from class net.sf.jportlet.service.PortletServiceAdapter |
_log, _serviceConfig, _serviceContext |
| Fields inherited from interface net.sf.jportlet.service.mail.MailService |
MIME_HTML, MIME_TEXT, NAME |
| Constructor Summary | |
MailServiceImpl()
|
|
| Method Summary | |
java.lang.String |
getServiceName()
Returns the name of the service |
void |
init(net.sf.jportlet.service.PortletServiceConfig config)
Initialize the service |
void |
send(javax.mail.Address from,
javax.mail.Address[] to,
java.lang.String subject,
java.lang.String body,
java.lang.String mimeType)
Send an email |
| Methods inherited from class net.sf.jportlet.service.PortletServiceAdapter |
destroy, getInitParameter, getInitParameter, getServiceConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jportlet.service.PortletService |
destroy, getServiceConfig |
| Constructor Detail |
public MailServiceImpl()
| Method Detail |
public void send(javax.mail.Address from,
javax.mail.Address[] to,
java.lang.String subject,
java.lang.String body,
java.lang.String mimeType)
throws javax.naming.NamingException,
javax.mail.MessagingException
MailService
send in interface MailServicejavax.naming.NamingException - if the JNDINAme of the javax.mail.Session is invalid
javax.mail.MessagingException - if any error while sending the emailnet.sf.jportlet.service.mail.MailService#send(java.net.InetAddress, java.net.InetAddress[], java.lang.String, java.lang.String, java.lang.String)public java.lang.String getServiceName()
PortletService
getServiceName in interface PortletServicePortletService.getServiceName()
public void init(net.sf.jportlet.service.PortletServiceConfig config)
throws PortletServiceException
PortletService
init in interface PortletServiceinit in class PortletServiceAdapterconfig - configuration of the service
PortletServiceExceptionPortletService.init(net.sf.jportlet.service.PortletServiceConfig)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||