|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.transport.mail.support.MailTransportUtils
public abstract class MailTransportUtils
Collection of utility methods to work with Mail transports.
Method Summary | |
---|---|
static void |
closeFolder(Folder folder)
Close the given JavaMail Folder and ignore any thrown exception. |
static void |
closeFolder(Folder folder,
boolean expunge)
Close the given JavaMail Folder and ignore any thrown exception. |
static void |
closeService(Service service)
Close the given JavaMail Service and ignore any thrown exception. |
static String |
getSubject(URI uri)
|
static InternetAddress |
getTo(URI uri)
|
static String |
toPasswordProtectedString(URLName name)
Returns a string representation of the given URLName , where the password has been protected. |
static URI |
toUri(InternetAddress to,
String subject)
Converts the given internet address into a mailto URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static InternetAddress getTo(URI uri)
public static String getSubject(URI uri)
public static void closeService(Service service)
finally
blocks in manual JavaMail code.
service
- the JavaMail Service to close (may be null
)Transport
,
Store
public static void closeFolder(Folder folder)
finally
blocks in manual JavaMail code.
folder
- the JavaMail Folder to close (may be null
)public static void closeFolder(Folder folder, boolean expunge)
finally
blocks in manual JavaMail code.
folder
- the JavaMail Folder to close (may be null
)expunge
- whether all deleted messages should be expunged from the folderpublic static String toPasswordProtectedString(URLName name)
URLName
, where the password has been protected.
public static URI toUri(InternetAddress to, String subject) throws URISyntaxException
mailto
URI.
to
- the To: addresssubject
- the subject, may be null
URISyntaxException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |