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

Method addProvider

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

Add a provider to the session. @param provider the provider to add @since JavaMail 1.4

(Provider provider)

Source from the content-addressed store, hash-verified

1081 * @since JavaMail 1.4
1082 */
1083 public synchronized void addProvider(Provider provider) {
1084 providers.add(provider);
1085 providersByClassName.put(provider.getClassName(), provider);
1086 if (!providersByProtocol.containsKey(provider.getProtocol()))
1087 providersByProtocol.put(provider.getProtocol(), provider);
1088 }
1089
1090 // load maps in reverse order of preference so that the preferred
1091 // map is loaded last since its entries will override the previous ones

Callers 3

loadProvidersMethod · 0.95
_connectMethod · 0.80

Calls 5

getClassNameMethod · 0.80
containsKeyMethod · 0.80
addMethod · 0.45
putMethod · 0.45
getProtocolMethod · 0.45

Tested by

no test coverage detected