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

Method setProtocolForAddress

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

Set the default transport protocol to use for addresses of the specified type. Normally the default is set by the javamail.default.address.map or javamail.address.map files or resources. @param addresstype type of address @param protocol name of protocol @see #getTranspor

(String addresstype,
				String protocol)

Source from the content-addressed store, hash-verified

1128 * @since JavaMail 1.4
1129 */
1130 public synchronized void setProtocolForAddress(String addresstype,
1131 String protocol) {
1132 if (protocol == null)
1133 addressMap.remove(addresstype);
1134 else
1135 addressMap.put(addresstype, protocol);
1136 }
1137
1138 /**
1139 * Load from the named file.

Callers

nothing calls this directly

Calls 2

removeMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected