Examples of Msg


Examples of org.mortbay.cometd.client.ChatRoomClient.Msg

        }
    }

    protected void publishFromServer(Channel channel, String user, String chat)
    {
        channel.publish(_chatService.getClient(), new Msg().add("user", user)
                .add("chat", chat), null);
    }
View Full Code Here

Examples of org.mypj.tele.client.Msg

    this.addPerson = addPerson;
  }

  protected void initUI() {

    Msg msg = GWT.create(Msg.class);
    // name
    HTML title_name = new HTML(msg.name());
    // contact
    HTML title_contact = new HTML(msg.contact());

    table.setWidget(0, 0, title_name);
    table.setWidget(0, 1, txt_name);
    table.setWidget(1, 0, title_contact);
    table.setWidget(1, 1, txt_contact);
    // detail panel
    DisclosurePanel detailPanel = new DisclosurePanel(msg.detail());
    Grid detailGrid = new Grid(3, 2);
    // birthday
    HTML title_birthday = new HTML(msg.birthday());
    txt_birthday.setFormat(new DateBox.DefaultFormat(DateTimeFormat
        .getFormat("yyyy/MM/dd")));
    // sex
    HTML title_sex = new HTML(msg.sex());
    // ps
    HTML title_ps = new HTML(msg.ps());

    detailGrid.setWidget(0, 0, title_birthday);
    detailGrid.setWidget(0, 1, txt_birthday);
    detailGrid.setWidget(1, 0, title_sex);
    detailGrid.setWidget(1, 1, txt_sex);
View Full Code Here

Examples of org.openhab.binding.insteonplm.internal.message.Msg

  public void doPoll() {
    ArrayList<QEntry> l = new ArrayList<QEntry>();
    synchronized(m_features) {
      for (DeviceFeature i : m_features.values()) {
        if (i.hasListeners()) {
          Msg m = i.makePollMsg();
          if (m != null) l.add(new QEntry(i, m));
        }
      }
    }
    if (l.isEmpty()) return;
View Full Code Here

Examples of org.rzo.yajsw.os.ms.win.w32.DummyWindow.MyUser32.MSG

        _hWnd = MyUser32.INSTANCE.CreateWindowExA(0, _wndClass.lpszClassName, _wndClass.lpszClassName, 0, 0, 0, 0, 0, null, null, _hinstance,
            null);
        MyUser32.INSTANCE.ShowWindow(_hWnd, MyUser32.SW_HIDE);
        MyUser32.INSTANCE.UpdateWindow(_hWnd);

        MSG msg = new MSG();
        msg.size();
        int ret;
        do
        {
          ret = MyUser32.INSTANCE.GetMessageA(msg, _hWnd, 0, 0);
          // System.out.println("get message "+msg);
View Full Code Here

Examples of org.sf.feeling.swt.win32.extension.hook.data.struct.Msg

    }
    MSG msg = (MSG) Display.getDefault().getData(HHOOKMSG);
    OS.MoveMemory(msg, lParam, MSG.sizeof);
    if (!container.isDisposed()) {
      if (container.getHookInterceptor() != null) {
        Msg message = new Msg(msg);
        if (container.getHookInterceptor().intercept(message, code,
            wParam, lParam) == true) {
          message.setMessage(Win32.WM_NULL);
          message.setLParam(0);
          message.setWParam(0);
          message.saveToPoint(lParam);
          return 0;
        }
      }
    }
    return Extension.CallNextHookEx(hHook.value, (int) /* 64 */code,
 
View Full Code Here

Examples of org.xmlBlaster.client.protocol.http.common.Msg

         qos.put("one-qos", "1");
         qos.put("two-qos", "2");
         qos.put("three-qos", "3");
        
         byte[] content = "This is the content".getBytes();
         Msg msg = new Msg(key, content, qos);
         Vector inVec = new Vector();
         inVec.add(key);
         inVec.add(qos);
         inVec.add(content);
         inVec.add(key);
View Full Code Here

Examples of org.xmlBlaster.test.Msg

      for(int i=0; i<n; i++) {
         log.info("TEST " + (i+1) + " - publishing 5 messages, expecting No.3");
         doPublish();
         assertEquals("numReceived after publishing", 1, this.updateInterceptor.waitOnUpdate(2000L, "3", Constants.STATE_OK));
         assertEquals("", 1, this.updateInterceptor.getMsgs().length);
         Msg msg = this.updateInterceptor.getMsgs()[0];
         assertEquals("Corrupt content", senderName, msg.getUpdateQos().getSender().getLoginName());
         assertEquals("Corrupt content", "Content: message_3", msg.getContentStr());
         assertEquals("Message contentMime is corrupted", contentMime, msg.getUpdateKey().getContentMime());
         assertEquals("engine.qos.update.subscriptionId: Wrong subscriptionId", subscribeOid, msg.getUpdateQos().getSubscriptionId());
         this.updateInterceptor.clear();
      }

      String xmlKey = "<key oid='' queryType='XPATH'>\n" +
                      "   /xmlBlaster/key/AGENT" +
View Full Code Here

Examples of org.xmlBlaster.test.Msg

                  assertEquals(text, 1, this.update.waitOnUpdate(sleep, msgOid, Constants.STATE_OK));
                  int count = expectsNotify ? 2 : 1;
                  assertEquals(text, count, this.update.count());
                  if (expectsNotify) {
                     String expectedState = "send,notifySender";
                     Msg msg = this.update.getMsg(msgOid, expectedState); // PtP notification
                     assertTrue("send,notifySender PtP not arrived", msg != null);
                  }
               }
               else if (action.startsWith("queue")) {
                  publish(msgOid, priority);
View Full Code Here

Examples of org.xmlBlaster.test.Msg

                     log.info("Receiving update of a message oid=" + updateKey.getOid() +
                         " priority=" + updateQos.getPriority() +
                         " state=" + updateQos.getState() +
                         " content=" + cont);
                     if (!updateQos.isErased()) {
                        updateMsgs.add(new Msg(cbSessionId, updateKey, content, updateQos));
                     }
                  }
                  catch (Throwable e) {
                     log.severe("Error in update method: " + e.toString());
                     e.printStackTrace();
View Full Code Here

Examples of org.xmlBlaster.test.Msg

      assertEquals("numReceived after subscribe", 0, this.updateInterceptor.waitOnUpdate(1000L, 0)); // no message arrived?
     
      {
         publish();
         assertEquals("numReceived after sending", 1, this.updateInterceptor.waitOnUpdate(1500L, oidExact, Constants.STATE_OK, 1));
         Msg msg = this.updateInterceptor.getMsg(oidExact, Constants.STATE_OK);
         assertTrue("Wrong update state", msg.getUpdateQos().isOk());

         msg.compareMsg(msgUnit);
         assertEquals("Message contentMime is corrupted", contentMime, msg.getUpdateKey().getContentMime());

         this.updateInterceptor.clear();
      }

      {
         this.updateInterceptor.countErased(true);
         erase();
         assertEquals("erase event is missing", 1, this.updateInterceptor.waitOnUpdate(2500L, oidExact, Constants.STATE_ERASED, 1));
         Msg msg = this.updateInterceptor.getMsg(oidExact, Constants.STATE_ERASED);
         assertEquals("wrong subscriptionId expected=" + subscribeId, subscribeId, msg.getUpdateQos().getSubscriptionId());
         assertTrue("wrong update state", msg.getUpdateQos().isErased());
        
         this.updateInterceptor.clear();
      }

      log.info("testEraseEvent SUCCESS");
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.