MCPcopy Create free account
hub / github.com/M66B/FairEmail / getTransport

Method getTransport

app/src/main/java/javax/mail/Session.java:670–679  ·  view source on GitHub ↗

Get a Transport object that implements this user's desired Transport protcol. The mail.transport.protocol property specifies the desired protocol. If an appropriate Transport object cannot be obtained, MessagingException is thrown. @return a Transport object @exception NoSuchProvider

()

Source from the content-addressed store, hash-verified

668 * @exception NoSuchProviderException If the provider is not found.
669 */
670 public Transport getTransport() throws NoSuchProviderException {
671 String prot = getProperty("mail.transport.protocol");
672 if (prot != null)
673 return getTransport(prot);
674 // if the property isn't set, use the protocol for "rfc822"
675 prot = (String)addressMap.get("rfc822");
676 if (prot != null)
677 return getTransport(prot);
678 return getTransport("smtp"); // if all else fails
679 }
680
681 /**
682 * Get a Transport object that implements the specified protocol.

Callers 2

send0Method · 0.95
verifySettings0Method · 0.45

Calls 6

getPropertyMethod · 0.95
getProviderMethod · 0.95
getServiceMethod · 0.95
getMethod · 0.45
getProtocolMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected