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)
| 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. |