Class UrlUtil
java.lang.Object
ch.tocco.nice2.messaging.mail.api.UrlUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringurlToString(jakarta.mail.URLName name) Constructs a string representation of the url not including the password.static StringurlToString(String url) Constructs a string representation of the url not including the password.
-
Method Details
-
urlToString
Constructs a string representation of the url not including the password. It prints four asterisks '****' instead. Created this because theURLName.toString()method includes the password in the resulting string, which is not good to log out. As a result this method is a modified version of the originalURLName.toString(). -
urlToString
Constructs a string representation of the url not including the password. It prints four asterisks '****' instead. Created this because theURLName.toString()method includes the password in the resulting string, which is not good to log out. As a result this method is a modified version of the originalURLName.toString().
-