Java javax.mail Session fields, constructors, methods, implement or subclass

Example usage for Java javax.mail Session fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.mail Session.

The text is from its open source code.

Method

booleangetDebug()
Get the debug setting for this Session.
PrintStreamgetDebugOut()
Returns the stream to be used for debugging output.
SessiongetDefaultInstance(Properties props, Authenticator authenticator)
Get the default Session object.
SessiongetDefaultInstance(Properties props)
Get the default Session object.
FoldergetFolder(URLName url)
Get a closed Folder object for the given URLName.
SessiongetInstance(Properties props, Authenticator authenticator)
Get a new Session object.
SessiongetInstance(Properties props)
Get a new Session object.
PropertiesgetProperties()
Returns the Properties object associated with this Session
StringgetProperty(String name)
Returns the value of the specified property.
ProvidergetProvider(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.
StoregetStore(String protocol)
Get a Store object that implements the specified protocol.
StoregetStore(URLName url)
Get a Store object for the given URLName.
StoregetStore(Provider provider)
Get an instance of the store specified by Provider.
StoregetStore()
Get a Store object that implements this user's desired Store protocol.
TransportgetTransport(String protocol)
Get a Transport object that implements the specified protocol.
TransportgetTransport(URLName url)
Get a Transport object for the given URLName.
TransportgetTransport(Provider provider)
Get an instance of the transport specified in the Provider.
TransportgetTransport(Address address)
Get a Transport object that can transport a Message of the specified address type.
TransportgetTransport()
Get a Transport object that implements this user's desired Transport protcol.
PasswordAuthenticationrequestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String defaultUserName)
Call back to the application to get the needed user name and password.
voidsetDebug(boolean debug)
Set the debug setting for this Session.
voidsetDebugOut(PrintStream out)
Set the stream to be used for debugging output for this session.
voidsetProtocolForAddress(String addresstype, String protocol)
Set the default transport protocol to use for addresses of the specified type.
voidsetProvider(Provider provider)
Set the passed Provider to be the default implementation for the protocol in Provider.protocol overriding any previous values.