Package com.seleniumsoftware.SMPPSim.pdu
Class DataSMResp
- java.lang.Object
-
- com.seleniumsoftware.SMPPSim.pdu.Pdu
-
- com.seleniumsoftware.SMPPSim.pdu.Response
-
- com.seleniumsoftware.SMPPSim.pdu.DataSMResp
-
- All Implemented Interfaces:
Demarshaller,Marshaller,java.io.Serializable
public class DataSMResp extends Response implements Marshaller, Demarshaller
DataSMResp 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- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Stringmessage_idprivate java.util.HashMap<java.lang.Short,Tlv>optionalsByTagprivate Smscsmsc
-
Constructor Summary
Constructors Constructor Description DataSMResp()DataSMResp(DataSM requestMsg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddemarshall(byte[] request)java.lang.StringgetMessage_id()TlvgetOptionnal(short aTag)java.util.List<java.lang.Short>getOptionnalTags()booleanhasOptionnal(short aTag)byte[]marshall()voidsetMessage_id(java.lang.String string)voidsetOptionnal(Tlv opt)java.lang.StringtoString()-
Methods inherited from class com.seleniumsoftware.SMPPSim.pdu.Response
errorResponse, prepareHeaderForMarshalling
-
Methods inherited from class com.seleniumsoftware.SMPPSim.pdu.Pdu
equals, getCmd_id, getCmd_len, getCmd_status, getSeq_no, setCmd_id, setCmd_len, setCmd_status, setSeq_no
-
-
-
-
Constructor Detail
-
DataSMResp
public DataSMResp()
-
DataSMResp
public DataSMResp(DataSM requestMsg)
-
-
Method Detail
-
marshall
public byte[] marshall() throws java.lang.Exception- Specified by:
marshallin interfaceMarshaller- Throws:
java.lang.Exception
-
demarshall
public void demarshall(byte[] request) throws java.lang.Exception- Specified by:
demarshallin interfaceDemarshaller- Throws:
java.lang.Exception
-
getMessage_id
public java.lang.String getMessage_id()
- Returns:
-
hasOptionnal
public boolean hasOptionnal(short aTag)
-
getOptionnal
public Tlv getOptionnal(short aTag)
-
getOptionnalTags
public java.util.List<java.lang.Short> getOptionnalTags()
-
setMessage_id
public void setMessage_id(java.lang.String string)
- Parameters:
string-
-
setOptionnal
public void setOptionnal(Tlv opt)
-
-