/** * Sends the message to the client, to be displayed on a UI element. * Waits for an answer from the user and returns the selected * action. * * @param type * @param msg * @return */ public MessageActionItem showNotificationMessageRequest(MessageType type, String msg, List<MessageActionItem> actions){ ShowMessageRequestParams $ = new ShowMessageRequestParams(); $.setMessage(msg); $.setType(type); $.setActions(actions); return client.showMessageRequest($).join(); }