Commit d5a8206
GERONIMO-6884 - Fix SocketFactory creation (#2)
* Fix SocketFactory creation
try to instantiate socketFactoryClass. If it fails try to use the geDefault method.
This is the way documented in JavaDoc and also used by i.E. angus-mail.
getDefault is the only way to get fallback to "javax.net.ssl.SSLSocketFactory" work. Because
SSLSocketFactory is an abstract class and not instantiable without subclassing.
* improved error handling information
---------
Co-authored-by: Jens Heitmann <jens.heitmann@sebsoftware.de>1 parent 38991ff commit d5a8206
File tree
1 file changed
+13
-1
lines changed- geronimo-mail_2.1_impl/geronimo-mail_2.1_provider/src/main/java/org/apache/geronimo/mail/util
1 file changed
+13
-1
lines changedLines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
361 | 373 | | |
362 | 374 | | |
363 | 375 | | |
| |||
0 commit comments