Examples of ESMClass


Examples of org.jsmpp.bean.ESMClass

        exchange.getIn().setHeader(SmppConstants.REGISTERED_DELIVERY, new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS).value());
        exchange.getIn().setHeader(SmppConstants.REPLACE_IF_PRESENT_FLAG, ReplaceIfPresentFlag.REPLACE.value());
        exchange.getIn().setBody("short message body");
        expect(session.submitShortMessage(eq("CMT"), eq(TypeOfNumber.NATIONAL), eq(NumberingPlanIndicator.NATIONAL), eq("1818"),
                eq(TypeOfNumber.INTERNATIONAL), eq(NumberingPlanIndicator.INTERNET), eq("1919"),
                eq(new ESMClass()), eq((byte) 1), eq((byte) 2), eq("-300101001831100-"), eq("-300101003702200-"), eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS)),
                eq(ReplaceIfPresentFlag.REPLACE.value()), eq(DataCoding.newInstance((byte) 0)), eq((byte) 0), aryEq("short message body".getBytes())))
                .andReturn("1");
       
        replay(session);
       
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

        exchange.getIn().setHeader(SmppConstants.REGISTERED_DELIVERY, new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS).value());
        exchange.getIn().setHeader(SmppConstants.REPLACE_IF_PRESENT_FLAG, ReplaceIfPresentFlag.REPLACE.value());
        exchange.getIn().setBody("short message body");
        expect(session.submitShortMessage(eq("CMT"), eq(TypeOfNumber.NATIONAL), eq(NumberingPlanIndicator.NATIONAL), eq("1818"),
                eq(TypeOfNumber.INTERNATIONAL), eq(NumberingPlanIndicator.INTERNET), eq("1919"),
                eq(new ESMClass()), eq((byte) 1), eq((byte) 2), eq("-300101001831100-"), eq("000003000000000R"), eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS)),
                eq(ReplaceIfPresentFlag.REPLACE.value()), eq(DataCoding.newInstance((byte) 0)), eq((byte) 0), aryEq("short message body".getBytes())))
                .andReturn("1");
       
        replay(session);
       
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

                                                ExchangePattern.InOut);
        exchange.getIn().setHeader(SmppConstants.COMMAND, "SubmitSm");
        exchange.getIn().setHeader(SmppConstants.ALPHABET, Alphabet.ALPHA_8_BIT.value());
        exchange.getIn().setBody(body);
        expect(session.submitShortMessage(eq("CMT"), eq(TypeOfNumber.UNKNOWN), eq(NumberingPlanIndicator.UNKNOWN), eq("1616"), eq(TypeOfNumber.UNKNOWN), eq(NumberingPlanIndicator.UNKNOWN),
                eq("1717"), eq(new ESMClass()), eq((byte) 0), eq((byte) 1), (String) isNull(), (String) isNull(), eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
                eq(ReplaceIfPresentFlag.DEFAULT.value()), not(eq(DataCoding.newInstance(incorrectDataCoding))), eq((byte) 0), aryEq(body)))
                .andReturn("1");
       
        replay(session);
       
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1616"),
                                          eq(TypeOfNumber.UNKNOWN),
                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1717"),
                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1616"),
                                          eq(TypeOfNumber.UNKNOWN),
                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1717"),
                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1616"),
                                          eq(TypeOfNumber.UNKNOWN),
                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1717"),
                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1616"),
                                          eq(TypeOfNumber.UNKNOWN),
                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1717"),
                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1616"),
                                          eq(TypeOfNumber.UNKNOWN),
                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1717"),
                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1616"),
                                          eq(TypeOfNumber.UNKNOWN),
                                          eq(NumberingPlanIndicator.UNKNOWN),
                                          eq("1717"),
                                          eq(new ESMClass()),
                                          eq((byte) 0),
                                          eq((byte) 1),
                                          (String) isNull(),
                                          (String) isNull(),
                                          eq(new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE)),
View Full Code Here

Examples of org.jsmpp.bean.ESMClass

       
        // 6. Submit the short message
        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
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.