Examples of InboundMessageNotification


Examples of org.smslib.notify.InboundMessageNotification

            }
          }
          if (!TestGateway.this.incomingMessagesThread.isInterrupted())
          {
            Logger.getInstance().logInfo("Detecting incoming message", null, getGatewayId());
            Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new InboundMessageNotification(getMyself(), MessageTypes.INBOUND, generateIncomingMessage()));
          }
        }
      }
    }, "IncomingMessagesThread");
    this.incomingMessagesThread.start();
View Full Code Here

Examples of org.smslib.notify.InboundMessageNotification

            {
              switch (msg.getType())
              {
                case INBOUND:
                case STATUSREPORT:
                  Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new InboundMessageNotification(getGateway(), msg.getType(), msg));
                  break;
                default:
                  break;
              }
            }
View Full Code Here

Examples of org.smslib.notify.InboundMessageNotification

          {
            switch (msg.getType())
            {
              case INBOUND:
              case STATUSREPORT:
                Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new InboundMessageNotification(getGateway(), msg.getType(), msg));
                break;
            }
          }
          this.msgList.clear();
        }
View Full Code Here

Examples of org.smslib.notify.InboundMessageNotification

             default:
               statusReportMessage.setStatus(DeliveryStatuses.UNKNOWN);
             }
            
             statusReportMessage.setGatewayId(getGatewayId());
             Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new InboundMessageNotification(getMyself(), MessageTypes.STATUSREPORT, statusReportMessage));
         } catch (InvalidDeliveryReceiptException e) {
           Logger.getInstance().logError("Failed getting delivery receipt.", e, getGatewayId());
           
         }
     } else {       
         InboundMessage msg = new InboundMessage(new java.util.Date(), deliverSm.getSourceAddr(), new String(deliverSm.getShortMessage()), 0, null);
     msg.setGatewayId(JSMPPGateway.this.getGatewayId());
     if(Alphabet.ALPHA_DEFAULT.value()==deliverSm.getDataCoding()){
          msg.setEncoding(MessageEncodings.ENC7BIT);
        }else if(Alphabet.ALPHA_8_BIT.value()==deliverSm.getDataCoding()){
          msg.setEncoding(MessageEncodings.ENC8BIT);
        }else if(Alphabet.ALPHA_UCS2.value()==deliverSm.getDataCoding()){
          msg.setEncoding(MessageEncodings.ENCUCS2);
        }else{
          msg.setEncoding(MessageEncodings.ENCCUSTOM);
        }
     incInboundMessageCount();
     Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new InboundMessageNotification(getMyself(), MessageTypes.INBOUND, msg));
     }
}
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.