Session


Object Hierarchy:

Object hierarchy for Session

Description:

[ CCode ( type_id = "camel_session_get_type ()" ) ]
public class Session : Object

Application context for a Camel mail session.

Session is a partially abstract class that provides the application context for a Camel mail session. Client applications must subclass it and override various virtual methods before any Provider backends can function.

A session provides:

  • **Service resolution** — ref_service looks up an already-registered Service by UID, while add_service registers a new service (instantiating the correct Store or Transport subclass based on the Provider).
  • **Online/offline state** — get_online and set_online control whether backends should access remote resources. Backends observe this and go offline accordingly.
  • **User interaction** — virtual methods for password prompts ( get_password) and alerts, which the client application must implement to interact with the user.
  • **Filter driver access** — get_filter_driver returns a configured FilterDriver for automatic message filtering.
  • **Thread management** — helpers for submitting jobs to a thread pool and for running async operations.

An application typically creates a single session instance and reuses it for the lifetime of the application.


Namespace: Camel
Package: camel-1.2

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members: