Examples of Message


Examples of com.apress.prospring3.springblog.web.form.Message

  @RequestMapping(method = RequestMethod.POST)
    public String create(@Valid Comment comment, BindingResult bindingResult, @PathVariable("blogid") Long blogid, Model uiModel,
        HttpServletRequest httpServletRequest, RedirectAttributes redirectAttributes, Locale locale) {
    logger.info("Creating comment for entry id: " + blogid);
        if (bindingResult.hasErrors()) {
      uiModel.addAttribute("message", new Message("error", messageSource.getMessage("comment_save_fail", new Object[]{}, locale)));
            uiModel.addAttribute("comment", comment);
            populateSelectBox(uiModel, blogid);
            return "blogs/" + UrlUtil.encodeUrlPathSegment(blogid.toString(), httpServletRequest) + "/comments/create";
        }
        uiModel.asMap().clear();
        redirectAttributes.addFlashAttribute("message", new Message("success", messageSource.getMessage("comment_save_success", new Object[]{}, locale)));
       
        Entry entry = entryService.findById(blogid);
        logger.info("Comment id: " + comment.getId());
        comment.setId(null);
        comment.setEntry(entry);
View Full Code Here

Examples of com.art.anette.datamodel.dataobjects.simple.Message

                }
                tpChatTabs.setTitleAt(i, chatPartner.getName());
            }
        }
        if (btnSendMessage.isEnabled() && !chatPartner.isOnline()) {
            ((ChatTableModel) tblLog.getModel()).addEntry(new Message(chatPartner.getId(), logic.getEmployee().getId(), "User went offline"));
        } else if (!btnSendMessage.isEnabled() && chatPartner.isOnline()) {
            ((ChatTableModel) tblLog.getModel()).addEntry(new Message(chatPartner.getId(), logic.getEmployee().getId(), "User went online"));
        }
        btnSendMessage.setEnabled(chatPartner.isOnline());
        edtMessage.setEnabled(chatPartner.isOnline());
    }
View Full Code Here

Examples of com.ateam.webstore.model.Message

        ServiceCase scase = new ServiceCase(person);
        service.store(scase);
       
        MessageService ms = new MessageService();
       
        Message mess = new Message(scase, person.getPerson(), false, 0, message);
        ms.store(mess);
        fs.setResultMessage("Feedback sent.");
       
        fs.setResultView(getMessageView("Feedback Sent.", "Send Feedback"));
       
View Full Code Here

Examples of com.avaje.ebeaninternal.server.cluster.mcast.Message

     */
    public List<Packet> write(boolean requiresAck, List<? extends Message> messages) throws IOException {

        BinaryMessageList binaryMsgList = new BinaryMessageList();
        for (int i = 0; i < messages.size(); i++) {
            Message message = messages.get(i);
            message.writeBinaryMessage(binaryMsgList);
        }
        return messagesPacketBuilder.write(requiresAck, binaryMsgList, "");
    }
View Full Code Here

Examples of com.bloomberglp.blpapi.Message

      if (event == null) {
        return;
      }
      MessageIterator msgIter = event.messageIterator();
      while (msgIter.hasNext()) {
        Message msg = msgIter.next();
        String bbgUniqueId = msg.topicName();

        if (event.eventType() == Event.EventType.SUBSCRIPTION_DATA) {
          FudgeMsg eventAsFudgeMsg = BloombergDataUtils.parseElement(msg.asElement());
          liveDataReceived(bbgUniqueId, eventAsFudgeMsg);
          // REVIEW 2012-09-19 Andrew -- Why return? Might the event contain multiple messages?
          return;
        }
        s_logger.info("Got event {} {} {}", event.eventType(), bbgUniqueId, msg.asElement());

        if (event.eventType() == Event.EventType.SESSION_STATUS) {
          s_logger.info("SESSION_STATUS event received: {}", msg.messageType());
          if (msg.messageType().toString().equals("SessionTerminated")) {
            disconnect();
            terminate();
          }
        }
      }
View Full Code Here

Examples of com.brewtab.irc.messages.Message

     * complete
     *
     * @return true if joined successfully, false otherwise
     */
    public boolean join() {
        Message joinMessage = new Message(MessageType.JOIN, this.channelName);
        List<Message> response;

        try {
            response = connection.request(
                MessageFilters.message(MessageType.RPL_NAMREPLY, null, "=", channelName),
View Full Code Here

Examples of com.calclab.emite.core.client.xmpp.stanzas.Message

    /**
     * The simplest way to send a message using the Session object
     */
    private void sendHelloWorldMessage(final Session session) {
  final Message message = new Message("hello world!", uri("everybody@world.org"));
  session.send(message);
    }
View Full Code Here

Examples of com.calclab.emite.core.stanzas.Message

  @Override
  public void onBeforeMessageSent(final BeforeMessageSentEvent event) {
    // Only Messages are listened not presence events
    // But sendStateMessage goes through here.
    final Message message = event.getMessage();
    final boolean alreadyWithState = getStateFromMessage(message) != null;
    if (!alreadyWithState && ownState != ChatState.active && message.getXML().getFirstChild(bodySubjectThreadMatchter) != null) {
      if (ownState == ChatState.composing) {
        pauseTimer.cancel();
      }

      logger.finer("Setting own status to: " + ownState + " because we send a body or a subject");
      ownState = ChatState.active;
      message.getXML().addChild(ChatState.active.toString(), XmppNamespaces.CHATSTATES);
    }
    if (ownState != ChatState.inactive) {
      inactiveTimer.schedule(inactiveDelay);
    }
  }
View Full Code Here

Examples of com.caucho.bam.packet.Message

   * Sends a message
   */
  @Override
  public void message(String to, String from, Serializable value)
  {
    enqueue(new Message(to, from, value));
  }
View Full Code Here

Examples of com.caucho.hemp.packet.Message

  /**
   * Sends a message
   */
  public void message(String to, String from, Serializable value)
  {
    enqueue(new Message(to, from, value));
  }
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.