request.message_builder.base ============================ .. py:module:: request.message_builder.base .. autoapi-nested-parse:: Provides the base classes for the message building step of the request pipeline. Module Contents --------------- .. py:class:: BuildingComponent Bases: :py:obj:`abc.ABC` Abstract base class for components in the composite building pattern. This is the building counterpart to ``ParsingComponent`` in ``message_parser/base.py``. Each component is responsible for one aspect of constructing a CMP PKI message (e.g. header, body, protection preparation) and stores its results in the context. .. py:method:: build(context) :abstractmethod: Execute building logic and store results in the context. .. py:class:: CompositeBuilding Bases: :py:obj:`BuildingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Composite builder to group multiple building components. Mirrors the ``CompositeParsing`` class from ``message_parser/base.py``. .. py:attribute:: components :type: list[BuildingComponent] :value: [] .. py:method:: add(component) Add a building component to the composite builder. .. py:method:: remove(component) Remove a building component from the composite builder. .. py:method:: build(context) Execute all child builders sequentially.