org.apache.servicemix.smpp.marshaler
Class DefaultSmppMarshaler

java.lang.Object
  extended by org.apache.servicemix.smpp.marshaler.DefaultSmppMarshaler
All Implemented Interfaces:
SmppMarshalerSupport

public class DefaultSmppMarshaler
extends java.lang.Object
implements SmppMarshalerSupport

Default SMPP Marshaler

Author:
jbonofre, lhein, mullerc

Constructor Summary
DefaultSmppMarshaler()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSmppMarshaler

public DefaultSmppMarshaler()
Method Detail

fromNMS

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

Specified by:
fromNMS in interface SmppMarshalerSupport
Parameters:
exchange - the MessageExchange
message - the NormalizedMessage
Returns:
the MessageRequest SMS content wrapper
Throws:
javax.xml.transform.TransformerException

toNMS

public void toNMS(javax.jbi.messaging.NormalizedMessage message,
                  org.jsmpp.bean.MessageRequest mr)
           throws javax.jbi.messaging.MessagingException
Description copied from interface: SmppMarshalerSupport
Converts the received SMPP message into a normalized message

Specified by:
toNMS in interface SmppMarshalerSupport
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.