Class MetadataInterceptor¶
- class sila2.server.MetadataInterceptor(affected_metadata: Iterable[Metadata])¶
Intercepts SiLA Client Metadata
- Parameters:
affected_metadata – SiLA Client Metadata to intercept
Notes
When a SiLA Client sends SiLA Client Metadata along with a command execution or property access request, the
intercept()
method of all affected metadata interceptors are called.- abstract intercept(parameters: Any, metadata: MetadataDict, target_call: FullyQualifiedIdentifier) None ¶
Called by the SiLA Server when receiving SiLA Client Metadata that is affected by this interceptor
- Parameters:
parameters – Original call parameters as a named tuple
metadata – All SiLA Client Metadata received along with the call
target_call – Fully qualified identifier of the requested command or property