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