Package de.willuhn.jameica.messaging

Examples of de.willuhn.jameica.messaging.QueryMessage


      {
        public void run()
        {
          try
          {
            QueryMessage msg = (QueryMessage) message;
            Integer status = (Integer) msg.getData();
            if (status == null)
              return;

            if (status.intValue() == ProgressMonitor.STATUS_RUNNING)
              return; // laeuft noch
View Full Code Here


    /**
     * @see de.willuhn.jameica.messaging.MessageConsumer#handleMessage(de.willuhn.jameica.messaging.Message)
     */
    public void handleMessage(Message message) throws Exception
    {
      QueryMessage msg = (QueryMessage) message;
      Object data = msg.getData();
      if (!(data instanceof Integer))
      {
        Logger.warn("got unknown data: " + data);
        return;
      }
View Full Code Here

  public void handleMessage(Message message) throws Exception
  {
    if (message == null || !(message instanceof QueryMessage))
      return;
   
    QueryMessage qm = (QueryMessage) message;
    Object data = qm.getData();
    String bank = data != null ? data.toString() : null;
    qm.setData(HBCIProperties.getNameForBank(bank));
  }
View Full Code Here

   
    this.transactionBegin();
    try
    {
      // Delete-Message schicken
      Application.getMessagingFactory().getMessagingQueue("hibiscus.dbobject.delete").sendSyncMessage(new QueryMessage(this));

      // Meta-Daten loeschen - muss NACH der Message erfolgen - sonst fehlen uns dort die Meta-Daten schon
      DBPropertyUtil.deleteAll(this.getPrefix());

      super.delete();
View Full Code Here

            Application.getCallback().notifyUser(msg);
          }
          break;
         
        case NEED_INFOPOINT_ACK:
          QueryMessage qm = new QueryMessage(msg,retData);
          Application.getMessagingFactory().getMessagingQueue("hibiscus.infopoint").sendSyncMessage(qm);
          retData.replace(0,retData.length(),qm.getData() == null ? "" : "false");
          break;
         
         
        case HAVE_IBAN_ERROR:
        case HAVE_CRC_ERROR:
View Full Code Here

  public void handleMessage(Message message) throws Exception
  {
    if (message == null || !(message instanceof QueryMessage))
      return;
   
    QueryMessage qm = (QueryMessage) message;
    Object data = qm.getData();
    if (data == null)
    {
      qm.setData(Boolean.FALSE);
      return;
    }

    try
    {
      HBCIProperties.getIBAN(data.toString());
      qm.setData(Boolean.TRUE);
    }
    catch (ApplicationException ae)
    {
      qm.setData(Boolean.FALSE);
    }
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.messaging.MessageConsumer#handleMessage(de.willuhn.jameica.messaging.Message)
   */
  public void handleMessage(Message message) throws Exception
  {
    QueryMessage msg = (QueryMessage) message;
    // Wir loggen das erstmal nur, senden aber noch nichts.
    Logger.info("got infopoint ack request: " + msg.getName());
    Logger.debug("xml data: " + msg.getData());
    msg.setData(Boolean.FALSE);
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.messaging.MessageConsumer#handleMessage(de.willuhn.jameica.messaging.Message)
   */
  public void handleMessage(Message message) throws Exception
  {
    QueryMessage msg = (QueryMessage) message;
    Object data = msg.getData();
    if (!(data instanceof HibiscusDBObject))
      return;

    HibiscusDBObject o = (HibiscusDBObject) data;
    if (o.isNewObject())
View Full Code Here

   * @see de.willuhn.jameica.messaging.MessageConsumer#handleMessage(de.willuhn.jameica.messaging.Message)
   */
  @Override
  public void handleMessage(Message message) throws Exception
  {
    QueryMessage msg = (QueryMessage) message;
    Object o = msg.getData();
    if (!(o instanceof Transfer))
    {
      Logger.warn("got invalid data: " + o);
      return;
    }
View Full Code Here

   * @see de.willuhn.jameica.messaging.MessageConsumer#handleMessage(de.willuhn.jameica.messaging.Message)
   */
  @Override
  public void handleMessage(Message message) throws Exception
  {
    QueryMessage msg = (QueryMessage) message;
    Object data = msg.getData();
    if (!(data instanceof Integer))
      return;
   
    final int status = ((Integer) data).intValue();
   
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.messaging.QueryMessage

Copyright © 2018 www.massapicom. 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.