com.ibm.mds.adpt.sms.base.records
Class ErrorMessage

java.lang.Object
  extended by com.ibm.mds.adpt.sms.base.records.ErrorMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.resource.cci.Record

public class ErrorMessage
extends java.lang.Object
implements javax.resource.cci.Record

This is the default Java Bean Implementation for the SMPP 3.4 SubmitSM class. This is the main record to be used for submitting a short message to an ESMC.

See Also:
Serialized Form

Field Summary
static java.lang.String INVALID_CMD_ID
           
static java.lang.String INVALID_CMD_LENGTH
           
static java.lang.String REC_NAME
          Comment for REC_NAME
 
Constructor Summary
ErrorMessage()
          The default Constructor for the MonitorHeartBeat
 
Method Summary
 java.lang.Object clone()
           
 void fromBytes(byte[] buffer)
           
 java.lang.String getErrorMsg()
           
 int getFunctionID()
          Gets the Function ID
 java.lang.String getRecordName()
           
 java.lang.String getRecordShortDescription()
           
 void setErrorMsg(java.lang.String errorMsg)
           
 void setFunctionID(int functionID)
          Sets the Function ID
 void setRecordName(java.lang.String name)
           
 void setRecordShortDescription(java.lang.String desc)
           
 void toBytes(byte[] buffer)
          Add the bytes for the PDU to a byte array.
 java.lang.String toString()
          Override toString method.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.resource.cci.Record
equals, hashCode
 

Field Detail

REC_NAME

public static final java.lang.String REC_NAME
Comment for REC_NAME

See Also:
Constant Field Values

INVALID_CMD_LENGTH

public static final java.lang.String INVALID_CMD_LENGTH
See Also:
Constant Field Values

INVALID_CMD_ID

public static final java.lang.String INVALID_CMD_ID
See Also:
Constant Field Values
Constructor Detail

ErrorMessage

public ErrorMessage()
The default Constructor for the MonitorHeartBeat

Method Detail

getRecordName

public java.lang.String getRecordName()
Specified by:
getRecordName in interface javax.resource.cci.Record

setRecordName

public void setRecordName(java.lang.String name)
Specified by:
setRecordName in interface javax.resource.cci.Record

setRecordShortDescription

public void setRecordShortDescription(java.lang.String desc)
Specified by:
setRecordShortDescription in interface javax.resource.cci.Record

getRecordShortDescription

public java.lang.String getRecordShortDescription()
Specified by:
getRecordShortDescription in interface javax.resource.cci.Record

clone

public java.lang.Object clone()
Specified by:
clone in interface javax.resource.cci.Record
Overrides:
clone in class java.lang.Object

fromBytes

public void fromBytes(byte[] buffer)
               throws java.lang.IllegalArgumentException,
                      java.io.UnsupportedEncodingException
Throws:
java.lang.IllegalArgumentException
java.io.UnsupportedEncodingException

toBytes

public void toBytes(byte[] buffer)
             throws java.io.UnsupportedEncodingException
Add the bytes for the PDU to a byte array.

Parameters:
buffer - the byte array
Throws:
java.io.UnsupportedEncodingException

getFunctionID

public int getFunctionID()
Gets the Function ID


setFunctionID

public void setFunctionID(int functionID)
Sets the Function ID

Parameters:
Function - ID to be set

setErrorMsg

public void setErrorMsg(java.lang.String errorMsg)
Parameters:
errorMsg - the errorMsg to set

getErrorMsg

public java.lang.String getErrorMsg()
Returns:
the errorMsg

toString

public java.lang.String toString()
Override toString method.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this class.


Copyright © 2006 IBM Corp. All Rights Reserved.