public class TransportStrategyFactory extends Object
Session supports actually 4 types of get transport which are handled by this transport strategy
Session.getTransport() => newSessiontStrategy() Session.getTransport(String) )} => newProtocolStrategy(String) Session.getTransport(URLName) ()} => newUrlNameStrategy(URLName) Session.getTransport(Address) => newUrlNameStrategy(URLName) Session.getTransport(Provider) => newProviderStrategy(Provider)
Created by nlabrot on 04/06/15.
| Constructor and Description |
|---|
TransportStrategyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TransportStrategy |
newAddressStrategy(jakarta.mail.Address address) |
static TransportStrategy |
newProtocolStrategy(String protocol) |
static TransportStrategy |
newProviderStrategy(jakarta.mail.Provider provider) |
static TransportStrategy |
newSessiontStrategy() |
static TransportStrategy |
newUrlNameStrategy(jakarta.mail.URLName urlName) |
public static TransportStrategy newSessiontStrategy()
public static TransportStrategy newProtocolStrategy(String protocol)
public static TransportStrategy newUrlNameStrategy(jakarta.mail.URLName urlName)
public static TransportStrategy newAddressStrategy(jakarta.mail.Address address)
public static TransportStrategy newProviderStrategy(jakarta.mail.Provider provider)
Copyright © 2021. All rights reserved.