Package com.logica.smpp.pdu

Examples of com.logica.smpp.pdu.QuerySM


   * @see "SMPPv3.4#4.8 - query_sm operation"
   */
  public SmppMessageStateType query (Address senderAddress, String messageId)
  {
    // create request
    QuerySM request = new QuerySM ();
    request.setSourceAddr (senderAddress);
    try {
      request.setMessageId (messageId);
    }
    catch (WrongLengthOfStringException exc) {
      myLog.error ("query - failed creating address", exc);
      return SmppMessageStateType.eUnknown;
    }
View Full Code Here


   * @see "SMPPv3.4#4.8 - query_sm operation"
   */
  public int query (Address senderAddress, String messageId)
  {
    // create request
    QuerySM request = new QuerySM ();
    request.setSourceAddr (senderAddress);
    try {
      request.setMessageId (messageId);
    }
    catch (WrongLengthOfStringException exc) {
      myLog.error ("query - failed creating address", exc);
      return -1;
    }

    try {
      getSession ().query (request);
      return request.getSequenceNumber ();
    }
    catch (ValueNotSetException exc) {
      myLog.error ("query - value not set", exc);
      return -1;
    }
View Full Code Here

TOP

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

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.