Examples of Message


Examples of com.cellasoft.jchat.utils.Message

            int index = tabbedPane.getSelectedIndex();
            String title = tabbedPane.getTitleAt(index);
           
            String color = Utils.colorToHex(((MenuToggleButton) colorTB).getColor());
            msg = "<p style=\"color:" + color + ";\">" + msg + "</p>";
            Message successMsg = new Message(msg, username, data, Message.PUBLIC_MASSAGE);
            Message warningMsg = new Message(msg, username, data, Message.WARNING_MESSAGE);
           
            if (title.equals("Principale")) {               
                try {
                    admin.broadcastMessage(successMsg);
                    ((ChatArea) chatArea).append(successMsg);
View Full Code Here

Examples of com.changestuffs.server.persistence.beans.Message

    return sender+SEPARATOR+receiver;
  }
 
  @Transactional
  public void addMessage(SendMessage message, String sender){
    Message bean = new Message();
    bean.setUserIdSenderUserIdReceiver(buildUserIdSenderUserIdReceiver(sender, message.getEmail()));
    bean.setDate(new Date());
    bean.setBody(message.getMessage());
    model.persist(bean);
    log.info("Saving "+bean);
  }
View Full Code Here

Examples of com.coherentlogic.fred.client.core.domain.Message

        Observations result = new Observations ();

        InputStream in = inputMessage.getBody();

        Message content = new Message (in);

        result.setMessage(content);

        return result;
    }
View Full Code Here

Examples of com.coherentlogic.wb.client.core.domain.Message

    public void testUnmarshalExpectingException ()
        throws XmlMappingException, IOException {

        ErrorMessage errorMessage = new ErrorMessage ();

        Message message = new Message ();

        message.setKey(KEY);
//        message.setId(ID);
        message.setValue(VALUE);

        errorMessage.setMessage(message);

        Source source = mock (StreamSource.class);
View Full Code Here

Examples of com.consol.citrus.message.Message

        VertxSingleMessageHandler vertxMessageHandler = new VertxSingleMessageHandler();
        vertx.eventBus().registerHandler(endpointConfiguration.getAddress(), vertxMessageHandler);

        long timeLeft = timeout;
        Message message = endpointConfiguration.getMessageConverter().convertInbound(vertxMessageHandler.getMessage(), endpointConfiguration);

        while (message == null && timeLeft > 0) {
            timeLeft -= endpointConfiguration.getPollingInterval();

            if (RETRY_LOG.isDebugEnabled()) {
View Full Code Here

Examples of com.cosmo.comm.Message

   public PageContext formSendedEvent(PageContext pc, HttpServletRequest request, HttpServletResponse response)
   {
      try
      {
         // Genera el mensaje
         Message message = new Message();
         message.setFrom(getWorkspace().getProperties().getString(Cosmo.PROPERTY_WORKSPACE_MAIL));
         message.addReceipient(new InternetAddress(HttpRequestUtils.getValue(request, "txtMail"), HttpRequestUtils.getValue(
               request, "txtName")));
         message.setHtmlBody(HttpRequestUtils.getValue(request, "txtBody"));

         // Envia el mensaje
         CommunicationsFactory.sendMessage(getWorkspace(), message);

         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
View Full Code Here

Examples of com.ctlok.springframework.web.servlet.view.rythm.tag.Message

       
        final List<ITemplate> tags = new ArrayList<ITemplate>();
       
        tags.add(new Url());
        tags.add(new FullUrl());
        tags.add(new Message(getApplicationContext()));
        tags.add(new Secured());
        tags.add(new DateFormat());
        tags.add(new CookieValue());
        tags.add(new CsrfToken(configurator.getCsrfTokenGenerator(),
                configurator.getCsrfTokenSessionName()));
View Full Code Here

Examples of com.dianping.cat.consumer.state.model.entity.Message

        } else if (key.equalsIgnoreCase("size")) {
          result[i] = detail.getSize() / 1024 / 1024;
        }
        continue;
      }
      Message message = messages.get(i * 60 * 1000L + start);

      if (message != null) {
        if (key.equalsIgnoreCase("total")) {
          result[i] = message.getTotal();
        } else if (key.equalsIgnoreCase("totalLoss")) {
          result[i] = message.getTotalLoss();
        } else if (key.equalsIgnoreCase("avgTps")) {
          result[i] = message.getTotal();
        } else if (key.equalsIgnoreCase("maxTps")) {
          result[i] = message.getTotal();
        } else if (key.equalsIgnoreCase("dump")) {
          result[i] = message.getDump();
        } else if (key.equalsIgnoreCase("dumpLoss")) {
          result[i] = message.getDumpLoss();
        } else if (key.equalsIgnoreCase("pigeonTimeError")) {
          result[i] = message.getPigeonTimeError();
        } else if (key.equalsIgnoreCase("networkTimeError")) {
          result[i] = message.getNetworkTimeError();
        } else if (key.equalsIgnoreCase("blockTotal")) {
          result[i] = message.getBlockTotal();
        } else if (key.equalsIgnoreCase("blockLoss")) {
          result[i] = message.getBlockLoss();
        } else if (key.equalsIgnoreCase("blockTime")) {
          result[i] = message.getBlockTime() * 1.0 / 60 / 1000;
        } else if (key.equalsIgnoreCase("size")) {
          result[i] = message.getSize() / 1024 / 1024;
        } else if (key.equalsIgnoreCase("delayAvg")) {
          if (message.getDelayCount() > 0) {
            result[i] = message.getDelaySum() / message.getDelayCount();
          }
        }
      }
    }
    return result;
View Full Code Here

Examples of com.dianping.cat.message.Message

  @Override
  public void process(MessageTree tree) {
    String domain = tree.getDomain();
    DependencyReport report = findOrCreateReport(domain);
    Message message = tree.getMessage();

    if (message instanceof Transaction) {
      processTransaction(report, tree, (Transaction) message);
    } else if (message instanceof Event) {
      processEvent(report, tree, (Event) message);
View Full Code Here

Examples of com.digitaldan.jomnilinkII.Message

     * @throws OmniUnknownMessageTypeException
     */
    private UnitProperties readUnitProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {
      Message m = c.reqObjectProperties(Message.OBJ_TYPE_UNIT, number, 0,
          ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_AREA_ALL,
          ObjectProperties.FILTER_3_ANY_LOAD);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((UnitProperties) m);
      }
      return 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.