Class DataSM

  • All Implemented Interfaces:
    Demarshaller, Marshaller, java.io.Serializable

    public class DataSM
    extends Request
    implements Demarshaller, Marshaller
    DataSM Copyright (C) Selenium Software Ltd 2006 This file is part of SMPPSim. SMPPSim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. SMPPSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SMPPSim; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA http://www.woolleynet.com http://www.seleniumsoftware.com $Header: /var/cvsroot/SMPPSim2/src/java/com/seleniumsoftware/SMPPSim/pdu/DataSM.java,v 1.8 2012/11/12 19:10:00 martin Exp $
    See Also:
    Serialized Form
    • Field Detail

      • logger

        private static java.util.logging.Logger logger
      • service_type

        private java.lang.String service_type
      • source_addr_ton

        private int source_addr_ton
      • source_addr_npi

        private int source_addr_npi
      • source_addr

        private java.lang.String source_addr
      • dest_addr_ton

        private int dest_addr_ton
      • dest_addr_npi

        private int dest_addr_npi
      • destination_addr

        private java.lang.String destination_addr
      • esm_class

        private int esm_class
      • registered_delivery_flag

        private int registered_delivery_flag
      • data_coding

        private int data_coding
      • optionalsByTag

        private java.util.HashMap<java.lang.Short,​Tlv> optionalsByTag
      • out

        java.io.ByteArrayOutputStream out
    • Constructor Detail

      • DataSM

        public DataSM()
      • DataSM

        public DataSM​(DataSM msg)
    • Method Detail

      • demarshall

        public void demarshall​(byte[] request)
                        throws java.lang.Exception
        Specified by:
        demarshall in interface Demarshaller
        Overrides:
        demarshall in class Request
        Throws:
        java.lang.Exception
      • marshall

        public byte[] marshall()
                        throws java.lang.Exception
        Specified by:
        marshall in interface Marshaller
        Throws:
        java.lang.Exception
      • getData_coding

        public int getData_coding()
        Returns:
      • getDest_addr_npi

        public int getDest_addr_npi()
        Returns:
      • getDest_addr_ton

        public int getDest_addr_ton()
        Returns:
      • getDestination_addr

        public java.lang.String getDestination_addr()
        Returns:
      • getEsm_class

        public int getEsm_class()
        Returns:
      • getRegistered_delivery_flag

        public int getRegistered_delivery_flag()
        Returns:
      • getService_type

        public java.lang.String getService_type()
        Returns:
      • getSource_addr

        public java.lang.String getSource_addr()
        Returns:
      • getSource_addr_npi

        public int getSource_addr_npi()
        Returns:
      • getSource_addr_ton

        public int getSource_addr_ton()
        Returns:
      • hasOptionnal

        public boolean hasOptionnal​(short aTag)
      • getOptionnal

        public Tlv getOptionnal​(short aTag)
      • getOptionnalTags

        public java.util.List<java.lang.Short> getOptionnalTags()
      • setData_coding

        public void setData_coding​(int i)
        Parameters:
        i -
      • setDest_addr_npi

        public void setDest_addr_npi​(int i)
        Parameters:
        i -
      • setDest_addr_ton

        public void setDest_addr_ton​(int i)
        Parameters:
        i -
      • setDestination_addr

        public void setDestination_addr​(java.lang.String string)
        Parameters:
        string -
      • setEsm_class

        public void setEsm_class​(int i)
        Parameters:
        i -
      • setRegistered_delivery_flag

        public void setRegistered_delivery_flag​(int i)
        Parameters:
        i -
      • setService_type

        public void setService_type​(java.lang.String string)
        Parameters:
        string -
      • setSource_addr

        public void setSource_addr​(java.lang.String string)
        Parameters:
        string -
      • setSource_addr_npi

        public void setSource_addr_npi​(int i)
        Parameters:
        i -
      • setSource_addr_ton

        public void setSource_addr_ton​(int i)
        Parameters:
        i -
      • setOptionnal

        public void setOptionnal​(Tlv opt)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Request