Package com.logica.smpp.pdu

Examples of com.logica.smpp.pdu.EnquireLinkResp


  public boolean isOpen ()
  {
    EnquireLink request = new EnquireLink ();

    try {
      EnquireLinkResp response = getSession ().enquireLink (request);
      return response != null;
    }
    catch (ValueNotSetException exc) {
      myLog.error ("isOpen - value not set", exc);
      return false;
View Full Code Here


   * @param event The {@link com.logica.smpp.ServerPDUEvent} should contain
   *              a {@link com.logica.smpp.pdu.EnquireLinkResp} PDU.
   */
  protected void handleEnquireLinkResponseEvent (ServerPDUEvent event)
  {
    EnquireLinkResp pdu = (EnquireLinkResp)(event.getPDU ());
    myLog.debug ("handleEnquireLinkResponseEvent - async request: {}", pdu.debugString ());

    synchronized (myEnquireLinkResponseEvents) {
      myEnquireLinkResponseEvents.enqueue (event);
      myEnquireLinkResponseEvents.notify ();
    }
View Full Code Here

               }
             } else {
               if(safeStop == false) {
                 try {
                   logger.debug("send enq lnk");
                   EnquireLinkResp response =
                              this.session.enquireLink();
                   logger.trace("sent enq lnk");
                       if(response.getCommandStatus() != Data.ESME_ROK) {
                         logger.fatal("error on sending enquire link " +
                             response.getCommandStatus());
                         unbind();
                         working = false;
                      }
                 } catch(IOException e) {
                         logger.fatal(e.toString()+
View Full Code Here

            synchronousSubmitSent = false;
          }
        } else {
          if(safeStop == false) {
                      logger.debug("send enq lnk");
                      EnquireLinkResp response = null;
            try {
              response = this.session.enquireLink();
              logger.trace("sent enq lnk");
                        if(response.getCommandStatus() != Data.ESME_ROK) {
                          safeUnbind();
                            working = false;
                        }              
            } catch (Exception e) {
              logger.error("error on enquire link " +
View Full Code Here

                    working = false;                   
          }
        } else {
          if(safeStop == false) {
                      logger.debug("send enq lnk");
                      EnquireLinkResp response = null;
            try {
              response = this.session.enquireLink();
              logger.trace("sent enq lnk");
                        if(response.getCommandStatus() != Data.ESME_ROK) {
                          logger.error("error on enquire link no OK, unbind");
                          unbind();
                            working = false;
                        }              
            } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.logica.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.