Class MailTransportUtils
java.lang.Object
org.springframework.integration.mail.MailTransportUtils
Collection of utility methods to work with Mail transports.
- Author:
- Arjen Poutsma, Mark Fisher, Artem Bilan
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidcloseFolder(Folder folder, boolean expunge) Close the given JavaMail Folder and ignore any thrown exception.static voidcloseService(Service service) Close the given JavaMail Service and ignore any thrown exception.static StringReturns a string representation of the givenURLName, where the password has been protected.
- 
Constructor Details- 
MailTransportUtilspublic MailTransportUtils()
 
- 
- 
Method Details- 
closeServiceClose the given JavaMail Service and ignore any thrown exception. This is useful for typicalfinallyblocks in manual JavaMail code.- Parameters:
- service- the JavaMail Service to close (may be- null)
- See Also:
 
- 
closeFolderClose the given JavaMail Folder and ignore any thrown exception. This is useful for typicalfinallyblocks in manual JavaMail code.- Parameters:
- folder- the JavaMail Folder to close (may be- null)
- expunge- whether all deleted messages should be expunged from the folder
 
- 
toPasswordProtectedString
 
-