session Class Reference
An object that contains all the information needed for connection to a service.
More...
List of all members.
Detailed Description
An object that contains all the information needed for connection to a service.
Constructor & Destructor Documentation
Member Function Documentation
Properties for the session and for the services.
Properties for the session and for the services.
Return a store service instance for the specified URL.
- Parameters:
-
| 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". |
- Returns:
- a new store service
References serviceFactory::create(), serviceFactory::getInstance(), and service::TYPE_STORE.
Return a store service instance for the specified protocol.
- Parameters:
-
| 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". |
- Returns:
- a new store service
References serviceFactory::create(), serviceFactory::getInstance(), and service::TYPE_STORE.
Return a transport service instance for the protocol specified in the session properties.
The property "store.protocol" specify the protocol to use.
- Parameters:
-
| 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". |
- Returns:
- a new store service
Return a transport service instance for the specified URL.
- Parameters:
-
| 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". |
- Returns:
- a new transport service
References serviceFactory::create(), serviceFactory::getInstance(), and service::TYPE_TRANSPORT.
Return a transport service instance for the specified protocol.
- Parameters:
-
| 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". |
- Returns:
- a new transport service
References serviceFactory::create(), serviceFactory::getInstance(), and service::TYPE_TRANSPORT.
Return a transport service instance for the protocol specified in the session properties.
The property "transport.protocol" specify the protocol to use.
- Parameters:
-
| 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". |
- Returns:
- a new transport service
The documentation for this class was generated from the following files: