Package org.jsmpp.bean

Examples of org.jsmpp.bean.RegisteredDelivery


                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
                                          eq(ReplaceIfPresentFlag.DEFAULT.value()),
                                          eq(DataCoding.newInstance(dataCoding)),
                                          eq((byte) 0),
                                          aryEq(bodyNarrowed)))
            .andReturn("1");
View Full Code Here


                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
                                          eq(ReplaceIfPresentFlag.DEFAULT.value()),
                                          eq(DataCoding.newInstance(dataCoding)),
                                          eq((byte) 0),
                                          aryEq(bodyNarrowed)))
            .andReturn("1");
View Full Code Here

                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
                                          eq(ReplaceIfPresentFlag.DEFAULT.value()),
                                          eq(DataCoding.newInstance(dataCoding)),
                                          eq((byte) 0),
                                          aryEq(body)))
            .andReturn("1");
View Full Code Here

                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
                                          eq(ReplaceIfPresentFlag.DEFAULT.value()),
                                          eq(DataCoding.newInstance(dataCoding)),
                                          eq((byte) 0),
                                          aryEq(body)))
            .andReturn("1");
View Full Code Here

                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
                                          eq(ReplaceIfPresentFlag.DEFAULT.value()),
                                          eq(DataCoding.newInstance(binDataCoding)),
                                          eq((byte) 0),
                                          aryEq(body)))
            .andReturn("1");
View Full Code Here

                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
                                          eq(ReplaceIfPresentFlag.DEFAULT.value()),
                                          eq(DataCoding.newInstance(latin1DataCoding)),
                                          eq((byte) 0),
                                          aryEq(bodyNarrowed)))
            .andReturn("1");
View Full Code Here

        String messageId = session.submitShortMessage("CMT",
                TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN,
                "1616", TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN,
                "628176504657", new ESMClass(), (byte)0, (byte)1
                timeFormatter.format(new Date()), null,
                new RegisteredDelivery(SMSCDeliveryReceipt.DEFAULT), (byte)0,
                dataCoding,
                (byte)0, data);
    }
View Full Code Here

      MessageClass messageClass, Alphabet alphabet, ESMClass esmClass) {
    String messageId = null;
    try {
      messageId = session.submitShortMessage("CMT", TypeOfNumber.UNKNOWN, NumberingPlanIndicator.UNKNOWN,
          sourceMsisdn, TypeOfNumber.UNKNOWN, NumberingPlanIndicator.UNKNOWN, destinationMsisdn, esmClass,
          (byte) 0, (byte) 1, null, null, new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE),
          (byte) 0, new GeneralDataCoding(alphabet, esmClass), (byte) 0, message);
    } catch (PDUException e) {
      // Invalid PDU parameter
      System.err.println("Invalid PDU parameter");
      e.printStackTrace();
View Full Code Here

            Address address1 = new Address(TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN, "628176504657");
            Address address2 = new Address(TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN, "628176504658");
            Address[] addresses = new Address[] {address1, address2};
            SubmitMultiResult result = session.submitMultiple("CMT", TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN, "1616",
                                                        addresses, new ESMClass(), (byte)0, (byte)1, timeFormatter.format(new Date()), null,
                                                        new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS), ReplaceIfPresentFlag.REPLACE,
                                                        new GeneralDataCoding(Alphabet.ALPHA_DEFAULT, MessageClass.CLASS1, false), (byte)0,
                                                        "jSMPP simplify SMPP on Java platform".getBytes());
            System.out.println("Messages submitted, result is " + result);
            Thread.sleep(2000);
        } catch (PDUException e) {
View Full Code Here

       
        // Now we will send 50 message asynchronously with max outstanding messages 10.
        ExecutorService execService = Executors.newFixedThreadPool(10);
       
        // requesting delivery report
        final RegisteredDelivery registeredDelivery = new RegisteredDelivery();
        registeredDelivery.setSMSCDeliveryReceipt(SMSCDeliveryReceipt.SUCCESS_FAILURE);
        final int maxMessage = 50;
        for (int i = 0; i < maxMessage; i++) {
           
            execService.execute(new Runnable() {
                public void run() {
View Full Code Here

TOP

Related Classes of org.jsmpp.bean.RegisteredDelivery

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.