Package com.logica.smpp.pdu

Examples of com.logica.smpp.pdu.QuerySMResp


    catch (WrongLengthOfStringException exc) {
      myLog.error ("query - failed creating address", exc);
      return SmppMessageStateType.eUnknown;
    }

    QuerySMResp response = null;
    try {
      myLog.debug ("query - calling getSession ().query");
      response = getSession ().query (request);
    }
    catch (ValueNotSetException exc) {
      myLog.error ("query - value not set", exc);
      return SmppMessageStateType.eUnknown;
    }
    catch (WrongSessionStateException exc) {
      myLog.error ("query - session state wrong", exc);
      return SmppMessageStateType.eUnknown;
    }
    catch (TimeoutException exc) {
      myLog.error ("query - timeout establishing connection", exc);
      return SmppMessageStateType.eUnknown;
    }
    catch (PDUException exc) {
      myLog.error ("query - exception in pdu", exc);
      return SmppMessageStateType.eUnknown;
    }
    catch (IOException exc) {
      myLog.error ("query - io exception (socket problem?)", exc);
      return SmppMessageStateType.eUnknown;
    }

    if (response == null) {
      return SmppMessageStateType.eUnknown;
    }
    else {
      myLog.debug ("query - received response: {}", response.debugString ());
      return SmppMessageStateType.decode (response.getMessageState ());
    }
  }
View Full Code Here


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

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

TOP

Related Classes of com.logica.smpp.pdu.QuerySMResp

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.