Example usage for Java javax.mail Session fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | getDebug() Get the debug setting for this Session. |
PrintStream | getDebugOut() Returns the stream to be used for debugging output. |
Session | getDefaultInstance(Properties props, Authenticator authenticator) Get the default Session object. |
Session | getDefaultInstance(Properties props) Get the default Session object. |
Folder | getFolder(URLName url) Get a closed Folder object for the given URLName. |
Session | getInstance(Properties props, Authenticator authenticator) Get a new Session object. |
Session | getInstance(Properties props) Get a new Session object. |
Properties | getProperties() Returns the Properties object associated with this Session |
String | getProperty(String name) Returns the value of the specified property. |
Provider | getProvider(String protocol) Returns the default Provider for the protocol specified. |
Provider[] | getProviders() This method returns an array of all the implementations installed via the javamail.[default.]providers files that can be loaded using the ClassLoader available to this application. |
Store | getStore(String protocol) Get a Store object that implements the specified protocol. |
Store | getStore(URLName url) Get a Store object for the given URLName. |
Store | getStore(Provider provider) Get an instance of the store specified by Provider. |
Store | getStore() Get a Store object that implements this user's desired Store protocol. |
Transport | getTransport(String protocol) Get a Transport object that implements the specified protocol. |
Transport | getTransport(URLName url) Get a Transport object for the given URLName. |
Transport | getTransport(Provider provider) Get an instance of the transport specified in the Provider. |
Transport | getTransport(Address address) Get a Transport object that can transport a Message of the specified address type. |
Transport | getTransport() Get a Transport object that implements this user's desired Transport protcol. |
PasswordAuthentication | requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String defaultUserName) Call back to the application to get the needed user name and password. |
void | setDebug(boolean debug) Set the debug setting for this Session. |
void | setDebugOut(PrintStream out) Set the stream to be used for debugging output for this session. |
void | setProtocolForAddress(String addresstype, String protocol) Set the default transport protocol to use for addresses of the specified type. |
void | setProvider(Provider provider) Set the passed Provider to be the default implementation for the protocol in Provider.protocol overriding any previous values. |