aries / net.globalid.aries.message.handler / MessageHandler / handle

handle

abstract fun handle(agent: Agent, messageContext: UnpackedMessageContext): Maybe<MessageHandlerResponse>

Handle an unpacked message using the context from the supplied agent. At this point, we use an empty maybe to tell that we cannot handle this message.

Parameters

agent - is the agent for which to handle the message

messageContext - is the unpacked message context

Return
maybe of MessageProcessResponse which contains result state of handle process