Java Doc for SMTPSTransportGBean.java in  » EJB-Server-geronimo » plugins » org » apache » geronimo » mail » 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 » EJB Server geronimo » plugins » org.apache.geronimo.mail 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.geronimo.mail.ProtocolGBean
      org.apache.geronimo.mail.SMTPSTransportGBean

SMTPSTransportGBean
public class SMTPSTransportGBean extends ProtocolGBean (Code)
A GBean that provides for the configuration of a JavaMail SMTP transport protocol.

SMTP transport properties that are common to all SMTP transports are provided via member variables of this class. Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.
version:
   $Rev: 594563 $ $Date: 2007-11-13 07:28:52 -0800 (Tue, 13 Nov 2007) $
See Also:   MailGBean



Field Summary
final public static  StringGBEAN_8BITMIME
    
final public static  StringGBEAN_DSN_NOTIFY
    
final public static  StringGBEAN_DSN_RET
    
final public static  StringGBEAN_EHLO
    
final public static  GBeanInfoGBEAN_INFO
    
final public static  StringGBEAN_MAIL_EXTENSION
    
final public static  StringGBEAN_REPORT_SUCCESS
    
final public static  StringGBEAN_SEND_PARTIAL
    
final public static  StringGBEAN_STARTTLS_ENABLE
    
final public static  StringGBEAN_SUBMITTER
    
final public static  StringSMTPS_8BITMIME
    
final public static  StringSMTPS_AUTH
    
final public static  StringSMTPS_CONNECTION_TIMEOUT
    
final public static  StringSMTPS_DSN_NOTIFY
    
final public static  StringSMTPS_DSN_RET
    
final public static  StringSMTPS_EHLO
    
final public static  StringSMTPS_FACTORY_CLASS
    
final public static  StringSMTPS_FACTORY_FALLBACK
    
final public static  StringSMTPS_FACTORY_PORT
    
final public static  StringSMTPS_FROM
    
final public static  StringSMTPS_LOCALADDRESS
    
final public static  StringSMTPS_LOCALHOST
    
final public static  StringSMTPS_LOCALPORT
    
final public static  StringSMTPS_MAIL_EXTENSION
    
final public static  StringSMTPS_PORT
    
final public static  StringSMTPS_QUITWAIT
    
final public static  StringSMTPS_REALM
    
final public static  StringSMTPS_REPORT_SUCCESS
    
final public static  StringSMTPS_SEND_PARTIAL
    
final public static  StringSMTPS_STARTTLS_ENABLE
    
final public static  StringSMTPS_SUBMITTER
    
final public static  StringSMTPS_TIMEOUT
    

Constructor Summary
public  SMTPSTransportGBean(String objectName, Properties properties, String host, String user, Integer port, Integer connectionTimeout, Integer timeout, String from, String localhost, String localaddress, Integer localport, Boolean ehlo, Boolean auth, Boolean startTLSEnable, String submitter, String dsnNotify, String dsnRet, Boolean allow8bitmime, Boolean sendPartial, String saslRealm, Boolean quitWait, Boolean reportSuccess, String socketFactoryClass, Boolean socketFactoryFallback, Integer socketFactoryPort, String mailExtension)
     Construct an instance of SMTPSTransportGBean

Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.


Method Summary
public  voidaddOverrides(Properties props)
     Add the overrides from the member variables to the properties file.
public  voiddoFail()
    
public  voiddoStart()
    
public  voiddoStop()
    
public  BooleangetAllow8bitmime()
     Returns whether encodings are converted to use "8bit" under certain conditions.
public  BooleangetAuth()
     Returns whether an attempt will be made to authenticate the user using the AUTH command.
public  IntegergetConnectionTimeout()
     Returns the socket connection timeout value in milliseconds.
public  StringgetDsnNotify()
     Returns the NOTIFY option to the RCPT command.
public  StringgetDsnRet()
     Returns the RET option to the MAIL command.
public  BooleangetEhlo()
     Returns whether an attempt will be made to sign on with the EHLO command.

If false, do not attempt to sign on with the EHLO command.

public  StringgetFrom()
     Returns the email address to use for SMTP MAIL command.
public static  GBeanInfogetGBeanInfo()
    
public  StringgetLocaladdress()
     Returns the local address (host name) to bind to when creating the SMTP socket.
public  StringgetLocalhost()
     Returns the local host name used in the SMTP HELO or EHLO command.
public  IntegergetLocalport()
     Returns the local port number to bind to when creating the SMTP socket.
public  StringgetMailExtension()
     Returns the extension string to append to the MAIL command.

Extension string to append to the MAIL command.

public  IntegergetPort()
     Returns the SMTP server port to connect to, if the connect() method doesn't explicitly specify one.
public  BooleangetQuitWait()
     Returns whether the transport will wait for the response to the QUIT command.

If set to true, causes the transport to wait for the response to the QUIT command.

public  BooleangetReportSuccess()
     Returns whether the transport will include an SMTPAddressSucceededException for each address that is successful.
public  StringgetSaslRealm()
     Returns the realm to use with DIGEST-MD5 authentication.
public  BooleangetSendPartial()
     Returns whether to send email to valid addresses when others are invalid.

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.

public  StringgetSocketFactoryClass()
     Returns the class that will be used to create SMTP sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface.

public  BooleangetSocketFactoryFallback()
     Returns whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class.

public  IntegergetSocketFactoryPort()
     Returns the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory.

public  BooleangetStartTLSEnable()
     Returns the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands.

If true, enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands.

public  StringgetSubmitter()
     Returns the submitter to use in the AUTH tag in the MAIL FROM command.

Typically used by a mail relay to pass along information about the original submitter of the message.

public  IntegergetTimeout()
     Returns the socket I/O timeout value in milliseconds.
public  voidsetAllow8bitmime(Boolean allow8bitmime)
     Sets whether encodings are converted to use "8bit" under certain conditions.
public  voidsetAuth(Boolean auth)
     Sets whether an attempt will be made to authenticate the user using the AUTH command.
public  voidsetConnectionTimeout(Integer connectionTimeout)
     Sets the socket connection timeout value in milliseconds.
public  voidsetDsnNotify(String dsnNotify)
     Sets the NOTIFY option to the RCPT command

Either NEVER, or some combination of SUCCESS, FAILURE, and DELAY (separated by commas).

public  voidsetDsnRet(String dsnRet)
     Sets the RET option to the MAIL command

Either FULL or HDRS.

public  voidsetEhlo(Boolean ehlo)
     Set whether an attempt will be made to sign on with the EHLO command.

If false, do not attempt to sign on with the EHLO command.

public  voidsetFrom(String from)
     Sets the email address to use for SMTP MAIL command

Email address to use for SMTP MAIL command.

public  voidsetLocaladdress(String localaddress)
     Sets the local address (host name) to bind to when creating the SMTP socket.

Local address (host name) to bind to when creating the SMTP socket. Defaults to the address picked by the Socket class.

public  voidsetLocalhost(String localhost)
     Sets the local host name used in the SMTP HELO or EHLO command.

Local host name used in the SMTP HELO or EHLO command.

public  voidsetLocalport(Integer localport)
     Sets the local port number to bind to when creating the SMTP socket.

Local port number to bind to when creating the SMTP socket.

public  voidsetMailExtension(String mailExtension)
     Sets the extension string to append to the MAIL command.

Extension string to append to the MAIL command.

public  voidsetPort(Integer port)
     Sets the SMTP server port to connect to, if the connect() method doesn't explicitly specify one.
public  voidsetQuitWait(Boolean quitWait)
     Sets whether the transport will wait for the response to the QUIT command

If set to true, causes the transport to wait for the response to the QUIT command.

public  voidsetReportSuccess(Boolean reportSuccess)
     Sets whether the transport will include an SMTPAddressSucceededException for each address that is successful.
public  voidsetSaslRealm(String saslRealm)
     Sets the realm to use with DIGEST-MD5 authentication.
public  voidsetSendPartial(Boolean sendPartial)
     Sets whether to send email to valid addresses when others are invalid.

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.

public  voidsetSocketFactoryClass(String socketFactoryClass)
     Sets the class that will be used to create SMTP sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface.

public  voidsetSocketFactoryFallback(Boolean socketFactoryFallback)
     Sets whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class.

public  voidsetSocketFactoryPort(Integer socketFactoryPort)
     Sets the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory.

public  voidsetStartTLSEnable(Boolean startTLSEnable)
     Sets the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands.

If true, enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands.

public  voidsetSubmitter(String submitter)
     Sets the submitter to use in the AUTH tag in the MAIL FROM command.

Typically used by a mail relay to pass along information about the original submitter of the message.

public  voidsetTimeout(Integer timeout)
     Sets the socket I/O timeout value in milliseconds.

Field Detail
GBEAN_8BITMIME
final public static String GBEAN_8BITMIME(Code)



GBEAN_DSN_NOTIFY
final public static String GBEAN_DSN_NOTIFY(Code)



GBEAN_DSN_RET
final public static String GBEAN_DSN_RET(Code)



GBEAN_EHLO
final public static String GBEAN_EHLO(Code)



GBEAN_INFO
final public static GBeanInfo GBEAN_INFO(Code)



GBEAN_MAIL_EXTENSION
final public static String GBEAN_MAIL_EXTENSION(Code)



GBEAN_REPORT_SUCCESS
final public static String GBEAN_REPORT_SUCCESS(Code)



GBEAN_SEND_PARTIAL
final public static String GBEAN_SEND_PARTIAL(Code)



GBEAN_STARTTLS_ENABLE
final public static String GBEAN_STARTTLS_ENABLE(Code)



GBEAN_SUBMITTER
final public static String GBEAN_SUBMITTER(Code)



SMTPS_8BITMIME
final public static String SMTPS_8BITMIME(Code)



SMTPS_AUTH
final public static String SMTPS_AUTH(Code)



SMTPS_CONNECTION_TIMEOUT
final public static String SMTPS_CONNECTION_TIMEOUT(Code)



SMTPS_DSN_NOTIFY
final public static String SMTPS_DSN_NOTIFY(Code)



SMTPS_DSN_RET
final public static String SMTPS_DSN_RET(Code)



SMTPS_EHLO
final public static String SMTPS_EHLO(Code)



SMTPS_FACTORY_CLASS
final public static String SMTPS_FACTORY_CLASS(Code)



SMTPS_FACTORY_FALLBACK
final public static String SMTPS_FACTORY_FALLBACK(Code)



SMTPS_FACTORY_PORT
final public static String SMTPS_FACTORY_PORT(Code)



SMTPS_FROM
final public static String SMTPS_FROM(Code)



SMTPS_LOCALADDRESS
final public static String SMTPS_LOCALADDRESS(Code)



SMTPS_LOCALHOST
final public static String SMTPS_LOCALHOST(Code)



SMTPS_LOCALPORT
final public static String SMTPS_LOCALPORT(Code)



SMTPS_MAIL_EXTENSION
final public static String SMTPS_MAIL_EXTENSION(Code)



SMTPS_PORT
final public static String SMTPS_PORT(Code)



SMTPS_QUITWAIT
final public static String SMTPS_QUITWAIT(Code)



SMTPS_REALM
final public static String SMTPS_REALM(Code)



SMTPS_REPORT_SUCCESS
final public static String SMTPS_REPORT_SUCCESS(Code)



SMTPS_SEND_PARTIAL
final public static String SMTPS_SEND_PARTIAL(Code)



SMTPS_STARTTLS_ENABLE
final public static String SMTPS_STARTTLS_ENABLE(Code)



SMTPS_SUBMITTER
final public static String SMTPS_SUBMITTER(Code)



SMTPS_TIMEOUT
final public static String SMTPS_TIMEOUT(Code)




Constructor Detail
SMTPSTransportGBean
public SMTPSTransportGBean(String objectName, Properties properties, String host, String user, Integer port, Integer connectionTimeout, Integer timeout, String from, String localhost, String localaddress, Integer localport, Boolean ehlo, Boolean auth, Boolean startTLSEnable, String submitter, String dsnNotify, String dsnRet, Boolean allow8bitmime, Boolean sendPartial, String saslRealm, Boolean quitWait, Boolean reportSuccess, String socketFactoryClass, Boolean socketFactoryFallback, Integer socketFactoryPort, String mailExtension)(Code)
Construct an instance of SMTPSTransportGBean

Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.
Parameters:
  objectName - the object name of the protocol
Parameters:
  properties - the set of default properties for the protocol
Parameters:
  host - the host the protocol connects to
Parameters:
  user - the default name for the protocol
Parameters:
  port - the SMTPS server port
Parameters:
  connectionTimeout - the socket connection timeout value in milliseconds
Parameters:
  timeout - the socket I/O timeout value in milliseconds
Parameters:
  from - the email address to use for SMTPS MAIL command
Parameters:
  localhost - the local host name used in the SMTPS HELO or EHLO command
Parameters:
  localaddress - the local address (host name) to bind to when creating the SMTPS socket
Parameters:
  localport - the local port number to bind to when creating the SMTPS socket
Parameters:
  ehlo - whether an attempt will be made to sign on with the EHLO command
Parameters:
  auth - whether an attempt will be made to authenticate the user usingthe AUTH command
Parameters:
  startTLSEnable - the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands
Parameters:
  submitter - the submitter to use in the AUTH tag in the MAIL FROM command
Parameters:
  dsnNotify - the NOTIFY option to the RCPT command
Parameters:
  dsnRet - the RET option to the MAIL command
Parameters:
  allow8bitmime - whether encodings are converted to use "8bit" under certainconditions
Parameters:
  sendPartial - whether to send email to valid addresses when others are invalid
Parameters:
  saslRealm - the realm to use with DIGEST-MD5 authentication
Parameters:
  quitWait - whether the transport will wait for the response to the QUIT command
Parameters:
  reportSuccess - whether the transport will include an SMTPAddressSucceededExceptionfor each address that is successful
Parameters:
  socketFactoryClass - the class that will be used to create SMTPS sockets
Parameters:
  socketFactoryFallback - whether java.net.Socket class will be created if the specifiedsocket factory class cannot be created
Parameters:
  socketFactoryPort - whether java.net.Socket class will be created if the specifiedsocket factory class cannot be created
Parameters:
  mailExtension - the extension string to append to the MAIL command





Method Detail
addOverrides
public void addOverrides(Properties props)(Code)
Add the overrides from the member variables to the properties file.



doFail
public void doFail()(Code)



doStart
public void doStart() throws Exception(Code)



doStop
public void doStop() throws Exception(Code)



getAllow8bitmime
public Boolean getAllow8bitmime()(Code)
Returns whether encodings are converted to use "8bit" under certain conditions.

If set to true, and the server supports the 8BITMIME extension, text parts of messages that use the "quoted-printable" or "base64" encodings are converted to use "8bit" encoding if they follow the RFC2045 rules for 8bit text.




getAuth
public Boolean getAuth()(Code)
Returns whether an attempt will be made to authenticate the user using the AUTH command.

Defaults to false.




getConnectionTimeout
public Integer getConnectionTimeout()(Code)
Returns the socket connection timeout value in milliseconds.



getDsnNotify
public String getDsnNotify()(Code)
Returns the NOTIFY option to the RCPT command.

Either NEVER, or some combination of SUCCESS, FAILURE, and DELAY (separated by commas).




getDsnRet
public String getDsnRet()(Code)
Returns the RET option to the MAIL command.

Either FULL or HDRS.




getEhlo
public Boolean getEhlo()(Code)
Returns whether an attempt will be made to sign on with the EHLO command.

If false, do not attempt to sign on with the EHLO command. Normally failure of the EHLO command will fallback to the HELO command; this property exists only for servers that don't fail EHLO properly or don't implement EHLO properly.




getFrom
public String getFrom()(Code)
Returns the email address to use for SMTP MAIL command.



getGBeanInfo
public static GBeanInfo getGBeanInfo()(Code)



getLocaladdress
public String getLocaladdress()(Code)
Returns the local address (host name) to bind to when creating the SMTP socket.



getLocalhost
public String getLocalhost()(Code)
Returns the local host name used in the SMTP HELO or EHLO command.



getLocalport
public Integer getLocalport()(Code)
Returns the local port number to bind to when creating the SMTP socket.



getMailExtension
public String getMailExtension()(Code)
Returns the extension string to append to the MAIL command.

Extension string to append to the MAIL command. The extension string can be used to specify standard SMTP service extensions as well as vendor-specific extensions. Typically the application should use the SMTPTransport method supportsExtension to verify that the server supports the desired service extension. See RFC 1869 and other RFCs that define specific extensions.




getPort
public Integer getPort()(Code)
Returns the SMTP server port to connect to, if the connect() method doesn't explicitly specify one.



getQuitWait
public Boolean getQuitWait()(Code)
Returns whether the transport will wait for the response to the QUIT command.

If set to true, causes the transport to wait for the response to the QUIT command. If set to false (the default), the QUIT command is sent and the connection is immediately closed.




getReportSuccess
public Boolean getReportSuccess()(Code)
Returns whether the transport will include an SMTPAddressSucceededException for each address that is successful.

Note also that this will cause a SendFailedException to be thrown from the sendMessage method of SMTPTransport even if all addresses were correct and the message was sent successfully.




getSaslRealm
public String getSaslRealm()(Code)
Returns the realm to use with DIGEST-MD5 authentication.



getSendPartial
public Boolean getSendPartial()(Code)
Returns whether to send email to valid addresses when others are invalid.

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.




getSocketFactoryClass
public String getSocketFactoryClass()(Code)
Returns the class that will be used to create SMTP sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface. This class will be used to create SMTP sockets.




getSocketFactoryFallback
public Boolean getSocketFactoryFallback()(Code)
Returns whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class. Defaults to true.




getSocketFactoryPort
public Integer getSocketFactoryPort()(Code)
Returns the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory. If not set, the default port will be used.




getStartTLSEnable
public Boolean getStartTLSEnable()(Code)
Returns the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands.

If true, enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands. Note that an appropriate trust store must configured so that the client will trust the server's certificate. This feature only works on J2SE 1.4 and newer systems. Default is false.




getSubmitter
public String getSubmitter()(Code)
Returns the submitter to use in the AUTH tag in the MAIL FROM command.

Typically used by a mail relay to pass along information about the original submitter of the message. See also the setSubmitter method of SMTPMessage. Mail clients typically do not use this.




getTimeout
public Integer getTimeout()(Code)
Returns the socket I/O timeout value in milliseconds.



setAllow8bitmime
public void setAllow8bitmime(Boolean allow8bitmime)(Code)
Sets whether encodings are converted to use "8bit" under certain conditions.

If set to true, and the server supports the 8BITMIME extension, text parts of messages that use the "quoted-printable" or "base64" encodings are converted to use "8bit" encoding if they follow the RFC2045 rules for 8bit text.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  allow8bitmime - whether encodings are converted to use "8bit" under certainconditions




setAuth
public void setAuth(Boolean auth)(Code)
Sets whether an attempt will be made to authenticate the user using the AUTH command.

Defaults to false.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  auth - whether an attempt will be made to authenticate the user usingthe AUTH command.




setConnectionTimeout
public void setConnectionTimeout(Integer connectionTimeout)(Code)
Sets the socket connection timeout value in milliseconds.

Default is infinite timeout.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  connectionTimeout - the socket connection timeout value in milliseconds.




setDsnNotify
public void setDsnNotify(String dsnNotify)(Code)
Sets the NOTIFY option to the RCPT command

Either NEVER, or some combination of SUCCESS, FAILURE, and DELAY (separated by commas).

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  dsnNotify - the NOTIFY option to the RCPT command




setDsnRet
public void setDsnRet(String dsnRet)(Code)
Sets the RET option to the MAIL command

Either FULL or HDRS.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  dsnRet - the RET option to the MAIL command




setEhlo
public void setEhlo(Boolean ehlo)(Code)
Set whether an attempt will be made to sign on with the EHLO command.

If false, do not attempt to sign on with the EHLO command. Normally failure of the EHLO command will fallback to the HELO command; this property exists only for servers that don't fail EHLO properly or don't implement EHLO properly.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  ehlo - whether an attempt will be made to sign on with the EHLO command




setFrom
public void setFrom(String from)(Code)
Sets the email address to use for SMTP MAIL command

Email address to use for SMTP MAIL command. This sets the envelope return address. Defaults to msg.getFrom() or InternetAddress.getLocalAddress(). NOTE: mail.smtps.user was previously used for this.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  from - the email address to use for SMTP MAIL command




setLocaladdress
public void setLocaladdress(String localaddress)(Code)
Sets the local address (host name) to bind to when creating the SMTP socket.

Local address (host name) to bind to when creating the SMTP socket. Defaults to the address picked by the Socket class. Should not normally need to be set, but useful with multi-homed hosts where it's important to pick a particular local address to bind to.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  localaddress - the local address (host name) to bind to when creating the SMTP socket




setLocalhost
public void setLocalhost(String localhost)(Code)
Sets the local host name used in the SMTP HELO or EHLO command.

Local host name used in the SMTP HELO or EHLO command. Defaults to InetAddress.getLocalHost().getHostName(). Should not normally need to be set if your JDK and your name service are configured properly.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  localhost - the local host name used in the SMTP HELO or EHLO command




setLocalport
public void setLocalport(Integer localport)(Code)
Sets the local port number to bind to when creating the SMTP socket.

Local port number to bind to when creating the SMTP socket. Defaults to the port number picked by the Socket class.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  localport - the local port number to bind to when creating the SMTP socket




setMailExtension
public void setMailExtension(String mailExtension)(Code)
Sets the extension string to append to the MAIL command.

Extension string to append to the MAIL command. The extension string can be used to specify standard SMTP service extensions as well as vendor-specific extensions. Typically the application should use the SMTPTransport method supportsExtension to verify that the server supports the desired service extension. See RFC 1869 and other RFCs that define specific extensions.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  mailExtension - the extension string to append to the MAIL command




setPort
public void setPort(Integer port)(Code)
Sets the SMTP server port to connect to, if the connect() method doesn't explicitly specify one.

Defaults to 25.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  port - the SMTP server port to connect to




setQuitWait
public void setQuitWait(Boolean quitWait)(Code)
Sets whether the transport will wait for the response to the QUIT command

If set to true, causes the transport to wait for the response to the QUIT command. If set to false (the default), the QUIT command is sent and the connection is immediately closed.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  quitWait - whether the transport will wait for the response to the QUIT command




setReportSuccess
public void setReportSuccess(Boolean reportSuccess)(Code)
Sets whether the transport will include an SMTPAddressSucceededException for each address that is successful.

Note also that this will cause a SendFailedException to be thrown from the sendMessage method of SMTPTransport even if all addresses were correct and the message was sent successfully.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  reportSuccess - whether the transport will include an SMTPAddressSucceededExceptionfor each address that is successful




setSaslRealm
public void setSaslRealm(String saslRealm)(Code)
Sets the realm to use with DIGEST-MD5 authentication.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  saslRealm - the realm to use with DIGEST-MD5 authentication




setSendPartial
public void setSendPartial(Boolean sendPartial)(Code)
Sets whether to send email to valid addresses when others are invalid.

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.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  sendPartial - whether to send email to valid addresses when others are invalid




setSocketFactoryClass
public void setSocketFactoryClass(String socketFactoryClass)(Code)
Sets the class that will be used to create SMTP sockets.

If set, specifies the name of a class that implements the javax.net.SocketFactory interface. This class will be used to create SMTP sockets.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  socketFactoryClass - the class that will be used to create SMTP sockets




setSocketFactoryFallback
public void setSocketFactoryFallback(Boolean socketFactoryFallback)(Code)
Sets whether java.net.Socket class will be created if the specified socket factory class cannot be created.

If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class. Defaults to true.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  socketFactoryFallback - whether java.net.Socket class will be created if the specifiedsocket factory class cannot be created




setSocketFactoryPort
public void setSocketFactoryPort(Integer socketFactoryPort)(Code)
Sets the port to connect to when using the specified socket factory.

Specifies the port to connect to when using the specified socket factory. If not set, the default port will be used.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  socketFactoryPort - the port to connect to when using the specified socket factory




setStartTLSEnable
public void setStartTLSEnable(Boolean startTLSEnable)(Code)
Sets the flag that enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands.

If true, enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands. Note that an appropriate trust store must configured so that the client will trust the server's certificate. This feature only works on J2SE 1.4 and newer systems. Default is false.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  startTLSEnable - the flag that enables the use of the STARTTLS command (ifsupported by the server) to switch the connection to a TLS-protectedconnection before issuing any login commands




setSubmitter
public void setSubmitter(String submitter)(Code)
Sets the submitter to use in the AUTH tag in the MAIL FROM command.

Typically used by a mail relay to pass along information about the original submitter of the message. See also the setSubmitter method of SMTPMessage. Mail clients typically do not use this.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  submitter - the submitter to use in the AUTH tag in the MAIL FROM command




setTimeout
public void setTimeout(Integer timeout)(Code)
Sets the socket I/O timeout value in milliseconds.

Default is infinite timeout.

Values that are set here will override any of the corresponding value that has been set in the properties.
Parameters:
  timeout - the socket I/O timeout value in milliseconds




Fields inherited from org.apache.geronimo.mail.ProtocolGBean
final public static String GBEAN_ADD_OVERRIDES(Code)(Java Doc)
final public static String GBEAN_AUTH(Code)(Java Doc)
final public static String GBEAN_CONNECTION_TIMEOUT(Code)(Java Doc)
final public static String GBEAN_FACTORY_CLASS(Code)(Java Doc)
final public static String GBEAN_FACTORY_FALLBACK(Code)(Java Doc)
final public static String GBEAN_FACTORY_PORT(Code)(Java Doc)
final public static String GBEAN_FROM(Code)(Java Doc)
final public static String GBEAN_HOST(Code)(Java Doc)
final public static GBeanInfo GBEAN_INFO(Code)(Java Doc)
final public static String GBEAN_LOCALADDRESS(Code)(Java Doc)
final public static String GBEAN_LOCALHOST(Code)(Java Doc)
final public static String GBEAN_LOCALPORT(Code)(Java Doc)
final public static String GBEAN_OBJECTNAME(Code)(Java Doc)
final public static String GBEAN_PORT(Code)(Java Doc)
final public static String GBEAN_PROPERTIES(Code)(Java Doc)
final public static String GBEAN_PROTOCOL(Code)(Java Doc)
final public static String GBEAN_QUITWAIT(Code)(Java Doc)
final public static String GBEAN_REALM(Code)(Java Doc)
final public static String GBEAN_TIMEOUT(Code)(Java Doc)
final public static String GBEAN_USER(Code)(Java Doc)

Methods inherited from org.apache.geronimo.mail.ProtocolGBean
public void addOverrides(Properties props)(Code)(Java Doc)
public void doFail()(Code)(Java Doc)
public void doStart() throws Exception(Code)(Java Doc)
public void doStop() throws Exception(Code)(Java Doc)
public static GBeanInfo getGBeanInfo()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public String getObjectName()(Code)(Java Doc)
public Properties getProperties()(Code)(Java Doc)
public String getProtocol()(Code)(Java Doc)
public String getUser()(Code)(Java Doc)
public void setHost(String host)(Code)(Java Doc)
public void setProperties(Properties properties)(Code)(Java Doc)
public void setUser(String user)(Code)(Java Doc)

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.