Package com.logica.smpp.pdu

Examples of com.logica.smpp.pdu.PDU.debugString()


    if (pdu == null) {
      return false;
    }
    else {
      myLog.error ("receive - received pdu: {}", pdu.debugString ());
      response.setCommand (SmppCommandType.decode (pdu.getCommandId ()));
      if (pdu instanceof DeliverSM) {
        DeliverSM deliver = (DeliverSM)pdu;
        updateResponse (response, deliver);
View Full Code Here


        DataSM data = (DataSM)pdu;
        myLog.error ("receive - data message not supported: {}", data.debugString ());
        return false;
      }
      else {
        myLog.error ("receive - pdu not recognised {}", pdu.debugString ());
        return false;
      }
    }
  }
View Full Code Here

      }
      else if (pdu instanceof DataSM) {
        handleDataEvent (event);
      }
      else {
        myLog.warn ("handleEvent -ignored async request: {}", pdu.debugString ());
      }
    }
    else if (pdu.isResponse ()) {
      if (pdu instanceof EnquireLinkResp) {
        if (myQueueEnquireLink) {
View Full Code Here

      if (pdu instanceof EnquireLinkResp) {
        if (myQueueEnquireLink) {
          handleEnquireLinkResponseEvent (event);
        }
        else {
          myLog.debug ("handleEvent - async response: {}", pdu.debugString ());
        }
      }
      else if (pdu instanceof SubmitSMResp) {
        handleSubmitResponseEvent (event);
      }
View Full Code Here

      }
      else if (pdu instanceof QuerySMResp) {
        handleQueryResponseEvent (event);
      }
      else {
        myLog.error ("handleEvent - ignored async response: {}", pdu.debugString ());
      }
    }
    else {
      myLog.error ("handleEvent - unknown class: {}", pdu.debugString ());
    }
View Full Code Here

      else {
        myLog.error ("handleEvent - ignored async response: {}", pdu.debugString ());
      }
    }
    else {
      myLog.error ("handleEvent - unknown class: {}", pdu.debugString ());
    }
  }

  /**
   * This method generates a response for the {@link com.logica.smpp.pdu.DeliverSM} PDU,
View Full Code Here

      PDU pdu = server.getPDU ();
      if (pdu instanceof DeliverSM) {
        return updateResponse (response, (DeliverSM)(pdu));
      }
      else if (pdu instanceof DataSM) {
        myLog.error ("receive - data message not supported: {}", pdu.debugString ());
      }
      else {
        myLog.error ("receive - pdu not recognised {}", pdu.debugString ());
        return false;
      }
View Full Code Here

      }
      else if (pdu instanceof DataSM) {
        myLog.error ("receive - data message not supported: {}", pdu.debugString ());
      }
      else {
        myLog.error ("receive - pdu not recognised {}", pdu.debugString ());
        return false;
      }
    }
    return false;
  }
View Full Code Here

               if(safeStop == false) {
                 if(pdu instanceof DeliverSM) {
                   callMOListeners((DeliverSM)pdu);
                 } else {
                   logger.error("received an unexpected pdu" +
                       pdu.debugString());
                 }  
               } else {
                 logger.fatal("going out no manage of receiving pdu");
                 unbind();
                 working = false;
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.