Java Doc for BasicEmailService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » email » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.email.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.email.impl.BasicEmailService

All known Subclasses:   org.sakaiproject.email.impl.EmailServiceTest,
BasicEmailService
abstract public class BasicEmailService implements EmailService(Code)

BasicEmailService implements the EmailService.


Inner Class :protected class MyMessage extends MimeMessage

Field Summary
final protected static  StringCONTENT_TYPE
    
final protected static  StringPOSTMASTER
    
final protected static  StringSMTP_FROM
     Email address to use for SMTP MAIL command.
final protected static  StringSMTP_HOST
     The SMTP server to connect to.
final protected static  StringSMTP_PORT
     The SMTP server port to connect to, if the connect() method doesn't explicitly specify one.
final protected static  StringSMTP_PROTOCOL
     Protocol name for smtp.
final protected static  StringSMTP_SENDPARTIAL
     If set to true, and a message has some valid and some invalid addresses, send the message anyway, reporting the partial failure with a SendFailedException.
protected  intm_maxRecipients
     The max # recipients to include in each message.
protected  booleanm_oneMessagePerConnection
     Configuration: use a connection to the SMTP for only one message (or not).
protected  Stringm_smtp
     Configuration: smtp server to use.
protected  Stringm_smtpFrom
     Configuration: optional smtp mail envelope return address.
protected  Stringm_smtpPort
     Configuration: smtp server port to use.
protected  booleanm_testMode
     Configuration: set to go into test mode, where mail is not really sent out.


Method Summary
protected  StringarrayToStr(Object[] array)
    
protected static  booleancanUseCharset(String content, String charsetName)
    
protected  StringcleanUp(String str)
    
public  voiddestroy()
     Final cleanup.
public  voidinit()
     Final initialization, once all dependencies are set.
protected  StringlistToStr(Collection list)
    
public  voidsend(String fromStr, String toStr, String subject, String content, String headerToStr, String replyToStr, List additionalHeaders)
    
public  voidsendMail(InternetAddress from, InternetAddress[] to, String subject, String content, InternetAddress[] headerTo, InternetAddress[] replyTo, List additionalHeaders)
    
public  voidsendToUsers(Collection users, Collection headers, String message)
    
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
public  voidsetMaxRecipients(String setting)
     Set max # recipients to include in each message.
Parameters:
  setting - The max # recipients to include in each message.
public  voidsetOneMessagePerConnection(boolean value)
    
public  voidsetSmtp(String value)
     Configuration: smtp server to use.
public  voidsetSmtpFrom(String value)
     Configuration: smtp mail envelope return address.
public  voidsetSmtpPort(String value)
     Configuration: smtp server port to use.
public  voidsetTestMode(boolean value)
     Configuration: set test mode.
protected  voidtestSend(String fromStr, String toStr, String subject, String content, String headerToStr, String replyToStr, List additionalHeaders)
    
protected  voidtestSendMail(InternetAddress from, InternetAddress[] to, String subject, String content, InternetAddress[] headerTo, InternetAddress[] replyTo, List additionalHeaders)
    
protected  StringusersToStr(Collection users)
    

Field Detail
CONTENT_TYPE
final protected static String CONTENT_TYPE(Code)



POSTMASTER
final protected static String POSTMASTER(Code)



SMTP_FROM
final protected static String SMTP_FROM(Code)
Email address to use for SMTP MAIL command. This sets the envelope return address. Defaults to msg.getFrom() or InternetAddress.getLocalAddress(). NOTE: mail.smtp.user was previously used for this.



SMTP_HOST
final protected static String SMTP_HOST(Code)
The SMTP server to connect to.



SMTP_PORT
final protected static String SMTP_PORT(Code)
The SMTP server port to connect to, if the connect() method doesn't explicitly specify one. Defaults to 25.



SMTP_PROTOCOL
final protected static String SMTP_PROTOCOL(Code)
Protocol name for smtp.



SMTP_SENDPARTIAL
final protected static String SMTP_SENDPARTIAL(Code)
If set to true, and a message has some valid and some invalid addresses, send the message anyway, reporting the partial failure with a SendFailedException. If set to false (the default), the message is not sent to any of the recipients if there is an invalid recipient address.



m_maxRecipients
protected int m_maxRecipients(Code)
The max # recipients to include in each message.



m_oneMessagePerConnection
protected boolean m_oneMessagePerConnection(Code)
Configuration: use a connection to the SMTP for only one message (or not).



m_smtp
protected String m_smtp(Code)
Configuration: smtp server to use.



m_smtpFrom
protected String m_smtpFrom(Code)
Configuration: optional smtp mail envelope return address.



m_smtpPort
protected String m_smtpPort(Code)
Configuration: smtp server port to use.



m_testMode
protected boolean m_testMode(Code)
Configuration: set to go into test mode, where mail is not really sent out.





Method Detail
arrayToStr
protected String arrayToStr(Object[] array)(Code)



canUseCharset
protected static boolean canUseCharset(String content, String charsetName)(Code)
Returns true if the given content String can be encoded in the given charset



cleanUp
protected String cleanUp(String str)(Code)



destroy
public void destroy()(Code)
Final cleanup.



init
public void init()(Code)
Final initialization, once all dependencies are set.



listToStr
protected String listToStr(Collection list)(Code)



send
public void send(String fromStr, String toStr, String subject, String content, String headerToStr, String replyToStr, List additionalHeaders)(Code)



sendMail
public void sendMail(InternetAddress from, InternetAddress[] to, String subject, String content, InternetAddress[] headerTo, InternetAddress[] replyTo, List additionalHeaders)(Code)



sendToUsers
public void sendToUsers(Collection users, Collection headers, String message)(Code)



serverConfigurationService
abstract protected ServerConfigurationService serverConfigurationService()(Code)
the ServerConfigurationService collaborator.



setMaxRecipients
public void setMaxRecipients(String setting)(Code)
Set max # recipients to include in each message.
Parameters:
  setting - The max # recipients to include in each message. (as an integer string).



setOneMessagePerConnection
public void setOneMessagePerConnection(boolean value)(Code)
Configuration: set use a connection to the SMTP for only one message (or not)
Parameters:
  value - The setting



setSmtp
public void setSmtp(String value)(Code)
Configuration: smtp server to use.
Parameters:
  value - The smtp server string.



setSmtpFrom
public void setSmtpFrom(String value)(Code)
Configuration: smtp mail envelope return address.
Parameters:
  value - The smtp mail from address string.



setSmtpPort
public void setSmtpPort(String value)(Code)
Configuration: smtp server port to use.
Parameters:
  value - The smtp server port string.



setTestMode
public void setTestMode(boolean value)(Code)
Configuration: set test mode.
Parameters:
  value - The test mode value



testSend
protected void testSend(String fromStr, String toStr, String subject, String content, String headerToStr, String replyToStr, List additionalHeaders)(Code)
test version of send



testSendMail
protected void testSendMail(InternetAddress from, InternetAddress[] to, String subject, String content, InternetAddress[] headerTo, InternetAddress[] replyTo, List additionalHeaders)(Code)
test version of sendMail



usersToStr
protected String usersToStr(Collection users)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.