Examples of SmesMessageSpecification


Examples of org.springframework.integration.smpp.core.SmesMessageSpecification

      // that will correlate this smsMessageId with the ID that comes back asynchronously
      // from the SMSC indicating that the message has been delivered.
      // this could require that we keep a correlation map since its possible upstream SMSC
      // unused return value -- see gateway

      SmesMessageSpecification specification = applyDefaultsIfNecessary(
          SmesMessageSpecification.fromMessage(this.smppSession, message)
              .setTimeFormatter(this.timeFormatter));

      List<String> smsMessageId = specification.send();
      logger.debug( "sent message : "+message.getPayload());
      logger.debug("message ID(s) for the sent message: " + smsMessageId);
    } catch (Exception e) {
      throw new RuntimeException("Exception in trying to process the inbound SMPP message", e);
    }
View Full Code Here

Examples of org.springframework.integration.smpp.core.SmesMessageSpecification

  @Override
  protected Object handleRequestMessage(Message<?> requestMessage) {
    try {

      SmesMessageSpecification specification = applyDefaultsIfNecessary(
          SmesMessageSpecification.fromMessage(this.smppSession, requestMessage)
              .setTimeFormatter(this.timeFormatter));

      List<String> smsMessageId = specification.send();

      logger.debug("message ID(s) for the sent message: " + smsMessageId);

      return MessageBuilder.withPayload(smsMessageId).build();
    } catch (Exception e) {
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.