Ice.Object

class Ice.Object

Bases: object

The base class for servants.

ice_isA(id: str, current: Current) bool | Awaitable[bool]

Tests whether this object supports a specific Slice interface.

Parameters:
  • id (str) – The type ID of the Slice interface to test against.

  • current (Current) – The Current object of the incoming request.

Returns:

True if this object implements the Slice interface specified by typeId or implements a derived interface, False otherwise.

Return type:

bool | Awaitable[bool]

ice_ping(current: Current) None | Awaitable[None]

Tests whether this object can be reached.

Parameters:

current (Current) – The Current object of the incoming request.

Return type:

None | Awaitable[None]

ice_ids(current: Current) Sequence[str] | Awaitable[Sequence[str]]

Returns the Slice interfaces supported by this object as a list of Slice type IDs.

Parameters:

current (Current) – The Current object of the incoming request.

Returns:

The Slice type IDs of the interfaces supported by this object, in alphabetical order.

Return type:

Sequence[str] | Awaitable[Sequence[str]]

ice_id(current: Current) str | Awaitable[str]

Returns the type ID of the most-derived Slice interface supported by this object.

Parameters:

current (Current) – The Current object of the incoming request.

Returns:

The Slice type ID of the most-derived interface.

Return type:

str | Awaitable[str]

static ice_staticId() str

Returns the type ID of the associated Slice interface.

Returns:

The return value is always "::Ice::Object".

Return type:

str