Package org.smpp.pdu

Examples of org.smpp.pdu.Address


        final List failedRecipients = new LinkedList();
        // if we have multiple message destinations we need to send it
        // multiple times as single messages
        for (int i = 0; i < numberOfDestinations; i++) {
            try {
                request.setDestAddr(new Address(message.getDestination(i)));
                if(LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Submit request " + request.debugString());
                }

                // Get a session from the pool and attempt to send the message.
View Full Code Here


            int numberOfDestinations = message.getDestinationCount();

            for (int i = 0; i < numberOfDestinations; i++) {
                String dest = message.getDestination(i);
                final Address address;
                if(dest.startsWith("+")) {
                    address =
                            new Address((byte) 0x01, (byte) 0x0, dest.substring(1));
                } else {
                    address = new Address(dest);
                }
                request.addDestAddress(new DestinationAddress(address));
            }
            request.setServiceType(SMSCSvcType);
            request.setSourceAddr(SMSCSvcAddr);
View Full Code Here

TOP

Related Classes of org.smpp.pdu.Address

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.