Package org.smpp.pdu

Examples of org.smpp.pdu.EnquireLinkResp


     * otherwise
     */
    public static boolean sendEnquireLink(Session session) {
        boolean valid = false;
        if (session != null) {
            EnquireLinkResp enquireResp = null;

            try {
                enquireResp = session.enquireLink();
            } catch (SmppException e) {
                LOGGER.error("SmppException while sending EnquireLink PDU", e);
            } catch (IOException e) {
                LOGGER.error("IOException while sending EnquireLink PDU", e);
            }

            if (enquireResp != null) {
                valid = enquireResp.getCommandStatus() == Data.ESME_ROK;
                if (!valid) {
                    LOGGER.warn("Unexpected response to EnquireLink PDU: " +
                            enquireResp.debugString());
                }
            } else {
                LOGGER.error("No response to the EnquireLink PDU - may be " +
                        "communicating asynchronously or the session " +
                        "may be invalid");
View Full Code Here

TOP

Related Classes of org.smpp.pdu.EnquireLinkResp

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.