Module mydata_did.v1_0.handlers.existing_connections_handler
Expand source code
from aries_cloudagent.messaging.base_handler import BaseHandler, BaseResponder, RequestContext
from dexa_sdk.managers.ada_manager import V2ADAManager
from ..messages.existing_connections import ExistingConnectionsMessage
class ExistingConnectionsMessageHandler(BaseHandler):
"""Handler for existing connections message"""
async def handle(self, context: RequestContext, responder: BaseResponder):
"""
Handle function.
"""
# Assert message type.
assert isinstance(context.message, ExistingConnectionsMessage)
# Initialize ADA manager
mgr = V2ADAManager(context)
# Call the function
await mgr.process_existing_connections_message(
context.message,
context.message_receipt,
)
Classes
class ExistingConnectionsMessageHandler
-
Handler for existing connections message
Initialize a BaseHandler instance.
Expand source code
class ExistingConnectionsMessageHandler(BaseHandler): """Handler for existing connections message""" async def handle(self, context: RequestContext, responder: BaseResponder): """ Handle function. """ # Assert message type. assert isinstance(context.message, ExistingConnectionsMessage) # Initialize ADA manager mgr = V2ADAManager(context) # Call the function await mgr.process_existing_connections_message( context.message, context.message_receipt, )
Ancestors
- aries_cloudagent.messaging.base_handler.BaseHandler
- abc.ABC
Methods
async def handle(self, context: aries_cloudagent.messaging.request_context.RequestContext, responder: aries_cloudagent.messaging.responder.BaseResponder)
-
Handle function.
Expand source code
async def handle(self, context: RequestContext, responder: BaseResponder): """ Handle function. """ # Assert message type. assert isinstance(context.message, ExistingConnectionsMessage) # Initialize ADA manager mgr = V2ADAManager(context) # Call the function await mgr.process_existing_connections_message( context.message, context.message_receipt, )