Examples of Message


Examples of org.astrogrid.samp.Message

                // Must be a table we sent, so use the samp table id we sent it with
                tableId = sampId;
            }
            URL url = navigator.getOrigURL();
            String urlStr = url != null ? url.toString() : null;
            Message msg = new Message("table.select.rowList");
            if (tableId != null) {
                msg.addParam("table-id", tableId);
            }
            if (urlStr != null) {
                msg.addParam("url", urlStr);
            }
            if (urlStr != null || tableId != null) {
                // convert Integer list to String list
                List<String> strRowList = new ArrayList<String>(rowList.size());
                for(Integer i : rowList) {
                    strRowList.add(i.toString());
                }
                msg.addParam("row-list", strRowList);
                msg.check();
                return msg;
            }
        }
        return null;
    }
View Full Code Here

Examples of org.auraframework.system.Message

                actionList.add(instance);
            }
        }

        return new Message(actionList);
    }
View Full Code Here

Examples of org.axonframework.domain.Message

    public void testResolveCorrelationData() throws Exception {
        Map<String, Object> metaData = new HashMap<String, Object>();
        metaData.put("key1", "value1");
        metaData.put("key2", "value2");
        metaData.put("key3", "value3");
        Message message = new GenericMessage<String>("payload", metaData);

        assertEquals(singletonMap("key1", "value1"),
                     new SimpleCorrelationDataProvider("key1").correlationDataFor(message));

        final Map<String, ?> actual2 = new SimpleCorrelationDataProvider("key1", "key2", "noExist", null)
View Full Code Here

Examples of org.b3log.latke.mail.MailService.Message

            final String commentContent =
                    comment.getString(Comment.COMMENT_CONTENT).
                    replaceAll(SoloServletListener.ENTER_ESC, "<br/>");
            final String commentSharpURL =
                    comment.getString(Comment.COMMENT_SHARP_URL);
            final Message message = new Message();
            message.setFrom(adminEmail);
            message.addRecipient(originalCommentEmail);
            final JSONObject replyNotificationTemplate =
                    preferenceQueryService.getReplyNotificationTemplate();
            final String mailSubject = replyNotificationTemplate.getString(
                    "subject").replace("${blogTitle}", blogTitle);
            message.setSubject(mailSubject);
            final String articleTitle = article.getString(Article.ARTICLE_TITLE);
            final String blogHost = preference.getString(Preference.BLOG_HOST);
            final String articleLink = "http://" + blogHost + article.getString(
                    Article.ARTICLE_PERMALINK);
            final String commentName = comment.getString(Comment.COMMENT_NAME);
            final String commentURL = comment.getString(Comment.COMMENT_URL);
            String commenter = null;
            if (!"http://".equals(commentURL)) {
                commenter = "<a target=\"_blank\" " + "href=\"" + commentURL
                            + "\">" + commentName + "</a>";
            } else {
                commenter = commentName;
            }

            final String mailBody = replyNotificationTemplate.getString("body").
                    replace("${postLink}", articleLink).
                    replace("${postTitle}", articleTitle).
                    replace("${replier}", commenter).
                    replace("${replyURL}", "http://" + blogHost
                                           + commentSharpURL).
                    replace("${replyContent}", commentContent);
            message.setHtmlBody(mailBody);
            LOGGER.log(Level.FINER,
                       "Sending a mail[mailSubject={0}, mailBody=[{1}] to [{2}]",
                       new Object[]{mailSubject, mailBody,
                                    originalCommentEmail});
            mailService.send(message);
View Full Code Here

Examples of org.beangle.notification.Message

    this.notifier = notifier;
  }

  public void send() {
    while (queue.size() > 0) {
      Message context = (Message) queue.remove();
      try {
        notifier.sendMessage(context);
        if (taskInterval > 0) {
          Thread.sleep(taskInterval);
        }
View Full Code Here

Examples of org.butor.utils.Message

    }
    String jsonArgs = sqlCall.substring(pos+1, ePos);
    Map<String, Object> args = new JsonHelper().deserialize(jsonArgs, Map.class);
    String sql = sqlQueryGenerator.generateQuery(procName, args);
    if (Strings.isNullOrEmpty(sql)) {
      rh.addMessage(new Message(0, MessageType.WARNING, "procedure " +procName +" either it does not exists or it was not invoked yet!"));
    }
    rh.addRow(sql);
  }
View Full Code Here

Examples of org.carrot2.labs.smartsprites.message.Message

        final Set<Message> toCheck = Sets.newHashSet(messages);
        for (int i = 0; i < actual.size(); i++)
        {
            for (Iterator<Message> it = toCheck.iterator(); it.hasNext();)
            {
                final Message message = it.next();
                try
                {
                    org.carrot2.labs.test.Assertions.assertThat(actual.get(i)).as(
                        "message[" + i + "]").isEquivalentTo(message);
                    it.remove();
View Full Code Here

Examples of org.chromium.debug.ui.DialogUtils.Message

     * Builds PreviewContext from what was passed from the action. Takes into account
     * various problems that are returned as error value of {@link Optional}.
     */
    static Optional<PreviewContext> build(Value uiValue) {
      if (uiValue == null) {
        return createErrorOptional(new Message(Messages.LogicImpl_VALUE_IS_NOT_AVAILABLE,
                MessagePriority.BLOCKING_PROBLEM));
      }
      JsValue jsValue = uiValue.getJsValue();
      JsObject jsObject = jsValue.asObject();
      if (jsObject == null) {
        return createErrorOptional(
            new Message(Messages.LogicImpl_NOT_FOR_PRIMITIVE, MessagePriority.BLOCKING_PROBLEM));
      }

      DebugContext debugContext = uiValue.getSuspendedState().getDebugContext();
      // Unsafe asynchronous check.
      if (uiValue.getSuspendedState().isDismissed()) {
        return createErrorOptional(
            new Message(Messages.LogicImpl_CONTEXT_DISMISSED, MessagePriority.BLOCKING_PROBLEM));
      }
      JsEvaluateContext globalEvaluateContext = debugContext.getGlobalEvaluateContext();

      return createOptional(new PreviewContext(globalEvaluateContext, jsObject));
    }
View Full Code Here

Examples of org.chromium.sdk.internal.transport.Message

    this.isContinuousProcessing = enabled;
  }

  public void processMessages(int count) {
    for (int i = 0; i < count; i++) {
      Message polled = messages.poll();
      if (polled == null) {
        break;
      }
      super.send(polled);
    }
View Full Code Here

Examples of org.codehaus.groovy.control.messages.Message

    public boolean failedWithUnexpectedEOF() {
      // Implementation note - there are several ways for the Groovy compiler
      // to report an unexpected EOF. Perhaps this implementation misses some.
      // If you find another way, please add it.
        if (getErrorCollector().hasErrors()) {
            Message last = (Message) getErrorCollector().getLastError();
            Throwable cause = null;
            if (last instanceof SyntaxErrorMessage) {
                cause = ((SyntaxErrorMessage) last).getCause().getCause();
            }
            if (cause != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.