Examples of EnquireLinkResp


Examples of org.jsmpp.bean.EnquireLinkResp

     * (non-Javadoc)
     *
     * @see org.jsmpp.util.PDUDecomposer#enquireLinkResp(byte[])
     */
    public EnquireLinkResp enquireLinkResp(byte[] b) {
        EnquireLinkResp resp = new EnquireLinkResp();
        assignHeader(resp, b);
        return resp;
    }
View Full Code Here

Examples of org.jsmpp.bean.EnquireLinkResp

    public void processEnquireLinkResp(Command pduHeader, byte[] pdu,
            BaseResponseHandler responseHandler) throws IOException {
        PendingResponse<Command> pendingResp = responseHandler
                .removeSentItem(pduHeader.getSequenceNumber());
        if (pendingResp != null) {
            EnquireLinkResp resp = pduDecomposer.enquireLinkResp(pdu);
            pendingResp.done(resp);
        } else {
            logger.error("No request found for " + pduHeader);
        }
    }
View Full Code Here

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
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.