processMessage method

StubbleResult processMessage (
  1. StubbleMessage msg,
  2. StubbleContext context
)

Processing message

Implementation

StubbleResult processMessage(StubbleMessage msg, StubbleContext context) {
  if (msg != null) {
    final messageName = msg.getName();

    if (methods[messageName] != null) {
      return methods[messageName](msg, context);
    }
  }

  return null;
}