org.apache.servicemix.smpp.marshaler
Interface SmppMarshalerSupport

All Known Implementing Classes:
DefaultSmppMarshaler

public interface SmppMarshalerSupport

this is the common marshaler interface for all SMPP marshalers

Author:
jbonofre, lhein

Method Summary
 org.jsmpp.bean.MessageRequest fromNMS(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage message)
          Converts a normalized message from the NMR into SMPP message
 void toNMS(javax.jbi.messaging.NormalizedMessage message, org.jsmpp.bean.MessageRequest mr)
          Converts the received SMPP message into a normalized message
 

Method Detail

fromNMS

org.jsmpp.bean.MessageRequest fromNMS(javax.jbi.messaging.MessageExchange exchange,
                                      javax.jbi.messaging.NormalizedMessage message)
                                      throws javax.xml.transform.TransformerException
Converts a normalized message from the NMR into SMPP message

Parameters:
exchange - the MessageExchange
message - the NormalizedMessage
Returns:
the MessageRequest SMS content wrapper
Throws:
javax.xml.transform.TransformerException

toNMS

void toNMS(javax.jbi.messaging.NormalizedMessage message,
           org.jsmpp.bean.MessageRequest mr)
           throws javax.jbi.messaging.MessagingException
Converts the received SMPP message into a normalized message

Parameters:
message - the NormalizedMessage to send on the NMR
mr - the MessageRequest SMS content wrapper
Throws:
javax.jbi.messaging.MessagingException


Copyright © 2005-2011 FuseSource. All Rights Reserved.