VMime
|
Public Member Functions | |
session () | |
session (const session &sess) | |
session (const propertySet &props) | |
virtual | ~session () |
shared_ptr< transport > | getTransport (shared_ptr< security::authenticator > auth=null) |
shared_ptr< transport > | getTransport (const string &protocol, shared_ptr< security::authenticator > auth=null) |
shared_ptr< transport > | getTransport (const utility::url &url, shared_ptr< security::authenticator > auth=null) |
shared_ptr< store > | getStore (shared_ptr< security::authenticator > auth=null) |
shared_ptr< store > | getStore (const string &protocol, shared_ptr< security::authenticator > auth=null) |
shared_ptr< store > | getStore (const utility::url &url, shared_ptr< security::authenticator > auth=null) |
const propertySet & | getProperties () const |
propertySet & | getProperties () |
void | setTLSProperties (shared_ptr< tls::TLSProperties > tlsProps) |
shared_ptr< tls::TLSProperties > | getTLSProperties () const |
Additional Inherited Members | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
An object that contains all the information needed for connection to a service.
session | ( | ) |
session | ( | const propertySet & | props | ) |
|
virtual |
const propertySet & getProperties | ( | ) | const |
Properties for the session and for the services.
propertySet & getProperties | ( | ) |
Properties for the session and for the services.
shared_ptr< store > getStore | ( | shared_ptr< security::authenticator > | auth = null | ) |
Return a transport service instance for the protocol specified in the session properties.
The property "store.protocol" specify the protocol to use.
auth | authenticator object to use for the new store service. If NULL, a default one is used. The default authenticator simply return user credentials by reading the session properties "auth.username" and "auth.password". |
shared_ptr< store > getStore | ( | const string & | protocol, |
shared_ptr< security::authenticator > | auth = null |
||
) |
Return a store service instance for the specified protocol.
protocol | store protocol to use (eg. "imap") |
auth | authenticator object to use for the new store service. If NULL, a default one is used. The default authenticator simply return user credentials by reading the session properties "auth.username" and "auth.password". |
References serviceFactory::getInstance(), and service::TYPE_STORE.
shared_ptr< store > getStore | ( | const utility::url & | url, |
shared_ptr< security::authenticator > | auth = null |
||
) |
Return a store service instance for the specified URL.
url | full URL with at least the protocol to use (eg: "imap://username:password@myserver.com/") |
auth | authenticator object to use for the new store service. If NULL, a default one is used. The default authenticator simply return user credentials by reading the session properties "auth.username" and "auth.password". |
References serviceFactory::getInstance(), and service::TYPE_STORE.
shared_ptr< tls::TLSProperties > getTLSProperties | ( | ) | const |
Get properties for SSL/TLS secured connections in this session.
shared_ptr< transport > getTransport | ( | shared_ptr< security::authenticator > | auth = null | ) |
Return a transport service instance for the protocol specified in the session properties.
The property "transport.protocol" specify the protocol to use.
auth | authenticator object to use for the new transport service. If NULL, a default one is used. The default authenticator simply return user credentials by reading the session properties "auth.username" and "auth.password". |
shared_ptr< transport > getTransport | ( | const string & | protocol, |
shared_ptr< security::authenticator > | auth = null |
||
) |
Return a transport service instance for the specified protocol.
protocol | transport protocol to use (eg. "smtp") |
auth | authenticator object to use for the new transport service. If NULL, a default one is used. The default authenticator simply return user credentials by reading the session properties "auth.username" and "auth.password". |
References serviceFactory::getInstance(), and service::TYPE_TRANSPORT.
shared_ptr< transport > getTransport | ( | const utility::url & | url, |
shared_ptr< security::authenticator > | auth = null |
||
) |
Return a transport service instance for the specified URL.
url | full URL with at least the protocol to use (eg: "smtp://myserver.com/") |
auth | authenticator object to use for the new transport service. If NULL, a default one is used. The default authenticator simply return user credentials by reading the session properties "auth.username" and "auth.password". |
References serviceFactory::getInstance(), and service::TYPE_TRANSPORT.
void setTLSProperties | ( | shared_ptr< tls::TLSProperties > | tlsProps | ) |
Set properties for SSL/TLS secured connections in this session.
tlsProps | SSL/TLS properties |