Package org.smpp.pdu

Examples of org.smpp.pdu.BindRequest


                    new PoolableSessionFactory(SMSCAddress, SMSCPort, SMSCUser,
                            SMSCPassword, SMSCBindType);
            this.sessionPool = initializeSessionPool(channelInfo, sessionFactory);
            this.sessionValidator = initializeSessionValidator(channelInfo);

            BindRequest request = new BindTransmitter();
            LOGGER.info("logica-smpp-version-is",
                    new Byte(request.getInterfaceVersion()));

        } catch (Exception e) {
            throw new MessageException(e);
        }
    }
View Full Code Here


     * @param session   which should be bound to the SMSC as a transmitter
     * @throws MessageException if there was a problem binding to the SMSC
     */
    protected void bind(Session session) throws MessageException {

        BindRequest request = new BindTransmitter();
        BindResponse response;
        LOGGER.info("logica-smpp-version-is",
                new Byte(request.getInterfaceVersion()));
       
        // Send the request.
        if(LOGGER.isDebugEnabled()) {
            LOGGER.debug("Bind request " + request.debugString());
        }

        try {
            request.setSystemId(SMSCUser);
            request.setPassword(SMSCPassword);
            request.setSystemType(null);
            request.setInterfaceVersion((byte) 0x34);

            if("async".equals(SMSCBindType)){               
                response = session.bind(request, new SMSCResponseListener());
            } else {
                response = session.bind(request);
View Full Code Here

TOP

Related Classes of org.smpp.pdu.BindRequest

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.