Module mydata_did.v1_0.handlers.json_ld_processed_response_handler
Expand source code
from aries_cloudagent.messaging.base_handler import BaseHandler, BaseResponder, RequestContext
from ..messages.json_ld_processed_response import JSONLDProcessedResponseMessage
from ..manager import ADAManager
import json
class JSONLDProcessedResponseHandler(BaseHandler):
"""Handle for json-ld/1.0/processed message"""
async def handle(self, context: RequestContext, responder: BaseResponder):
"""
Message handler logic for json-ld/1.0/processed-data-response message.
"""
# Assert if received message is of type JSONLDProcessedResponseMessage
assert isinstance(context.message, JSONLDProcessedResponseMessage)
self._logger.info(
"Received json-ld/1.0/processed-data-response message: \n%s",
json.dumps(context.message.serialize(), indent=4)
)
Classes
class JSONLDProcessedResponseHandler
-
Handle for json-ld/1.0/processed message
Initialize a BaseHandler instance.
Expand source code
class JSONLDProcessedResponseHandler(BaseHandler): """Handle for json-ld/1.0/processed message""" async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for json-ld/1.0/processed-data-response message. """ # Assert if received message is of type JSONLDProcessedResponseMessage assert isinstance(context.message, JSONLDProcessedResponseMessage) self._logger.info( "Received json-ld/1.0/processed-data-response message: \n%s", json.dumps(context.message.serialize(), indent=4) )
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)
-
Message handler logic for json-ld/1.0/processed-data-response message.
Expand source code
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for json-ld/1.0/processed-data-response message. """ # Assert if received message is of type JSONLDProcessedResponseMessage assert isinstance(context.message, JSONLDProcessedResponseMessage) self._logger.info( "Received json-ld/1.0/processed-data-response message: \n%s", json.dumps(context.message.serialize(), indent=4) )