|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.mds.adpt.sms.base.cci.BaseMessageTranslator
public abstract class BaseMessageTranslator
This is the main utility class for the protocol message translator. When adding a new JCA Protocol adaptor, a user must extend this class to support translation of the attributes between SI and Adapter.
Field Summary | |
---|---|
protected java.lang.String |
encoding
|
protected int |
maxMessageLength
|
protected int |
maxTargets
|
Constructor Summary | |
---|---|
BaseMessageTranslator(java.lang.String encoding)
Creates a new Base Message Translator. |
Method Summary | |
---|---|
boolean |
equals(BaseMessageTranslator translator)
test if the incoming translator is equal to this translator object |
java.lang.String |
getDataCoding()
|
int |
getMaxMessageLength()
|
int |
getMaxTargets()
|
abstract javax.resource.cci.Record |
getMultiTargetRecord(java.lang.String[] targets,
java.lang.String source,
java.lang.String msg,
int segment,
int totalSegments,
int sarRefNum,
int aid,
java.lang.String serviceType,
java.lang.String billingCode,
java.lang.String serviceTypeUsage,
java.lang.String Operation,
boolean chargeForFirstSegmentOnly)
This method will divide a single internal message to an array of cci Records according to the maxMessageLength. |
abstract javax.resource.cci.Record |
getMultiTargetRecord(java.net.URI[] targets,
java.lang.String source,
java.lang.String msg,
int segment,
int totalSegments,
int sarRefNum,
int aid,
java.lang.String serviceType,
java.lang.String billingCode,
java.lang.String serviceTypeUsage,
java.lang.String Operation,
boolean chargeForFirstSegmentOnly)
This method will divide a single internal message to an array of cci Records according to the maxMessageLength. |
abstract javax.resource.cci.Record |
getMultiTargetResponseRecord(java.lang.String source)
This method will divide a single internal message to an array of cci Records according to the maxMessageLength. |
abstract javax.resource.cci.Record |
getSingleTargetRecord(java.lang.String target,
java.lang.String source,
java.lang.String msg,
int segment,
int totalSegments,
int sarRefNum,
int aid,
java.lang.String serviceType,
java.lang.String billingCode,
java.lang.String serviceTypeUsage,
java.lang.String Operation,
boolean chargeForFirstSegmentOnly)
This method will divide a single internal message to an array of cci Records according to the maxMessageLength. |
abstract javax.resource.cci.Record |
getSingleTargetRecord(java.net.URI target,
java.lang.String source,
java.lang.String msg,
int segment,
int totalSegments,
int sarRefNum,
int aid,
java.lang.String serviceType,
java.lang.String billingCode,
java.lang.String serviceTypeUsage,
java.lang.String Operation,
boolean chargeForFirstSegmentOnly)
This method will divide a single internal message to an array of cci Records according to the maxMessageLength. |
abstract javax.resource.cci.Record |
getSingleTargetResponseRecord(java.lang.String source)
This method will divide a single internal message to an array of cci Records according to the maxMessageLength. |
boolean |
isReceiptRequired()
|
void |
setDataCoding(java.lang.String dataCoding)
|
void |
setMaxMessageLength(int maxMessageLength)
|
void |
setMaxTargets(int maxTargets)
|
void |
setReceiptRequired(boolean receiptRequired)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int maxMessageLength
protected int maxTargets
protected java.lang.String encoding
Constructor Detail |
---|
public BaseMessageTranslator(java.lang.String encoding)
encoding
- The encoding to use when fragmenting messages.Method Detail |
---|
public abstract javax.resource.cci.Record getMultiTargetRecord(java.net.URI[] targets, java.lang.String source, java.lang.String msg, int segment, int totalSegments, int sarRefNum, int aid, java.lang.String serviceType, java.lang.String billingCode, java.lang.String serviceTypeUsage, java.lang.String Operation, boolean chargeForFirstSegmentOnly) throws com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
targets
- The array of targets who should receive a copy of the message.source
- The source address of the originator of the message.msg
- The message to translate.aid
- a Unique ID for the message segment.
com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
public abstract javax.resource.cci.Record getMultiTargetRecord(java.lang.String[] targets, java.lang.String source, java.lang.String msg, int segment, int totalSegments, int sarRefNum, int aid, java.lang.String serviceType, java.lang.String billingCode, java.lang.String serviceTypeUsage, java.lang.String Operation, boolean chargeForFirstSegmentOnly) throws com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
targets
- The array of targets who should receive a copy of the message.source
- The source address of the originator of the message.msg
- The message to translate.aid
- a Unique ID for the message segment.
com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
public abstract javax.resource.cci.Record getSingleTargetRecord(java.lang.String target, java.lang.String source, java.lang.String msg, int segment, int totalSegments, int sarRefNum, int aid, java.lang.String serviceType, java.lang.String billingCode, java.lang.String serviceTypeUsage, java.lang.String Operation, boolean chargeForFirstSegmentOnly) throws com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
targets
- The array of targets who should receive a copy of the message.source
- The source address of the originator of the message.msg
- The message to translate.aid
- a Unique ID for the message segment.
com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
public abstract javax.resource.cci.Record getSingleTargetRecord(java.net.URI target, java.lang.String source, java.lang.String msg, int segment, int totalSegments, int sarRefNum, int aid, java.lang.String serviceType, java.lang.String billingCode, java.lang.String serviceTypeUsage, java.lang.String Operation, boolean chargeForFirstSegmentOnly) throws com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
target
- The URI target who should receive a copy of the message.source
- The source address of the originator of the message.msg
- The message to translate.aid
- a Unique ID for the message segment.
com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
public abstract javax.resource.cci.Record getMultiTargetResponseRecord(java.lang.String source) throws com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
source
- The source address of the originator of the message.
com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
public abstract javax.resource.cci.Record getSingleTargetResponseRecord(java.lang.String source) throws com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
source
- The source address of the originator of the message.
com.ibm.mds.adpt.sms.smpp.util.MessageTranslationException
public int getMaxMessageLength()
public void setMaxMessageLength(int maxMessageLength)
maxMessageLength
- The maxMessageLength to set.public int getMaxTargets()
public void setMaxTargets(int maxTargets)
maxTargets
- The maxTargets to set.public java.lang.String getDataCoding()
public void setDataCoding(java.lang.String dataCoding)
dataCoding
- The dataCoding to set.public boolean isReceiptRequired()
public void setReceiptRequired(boolean receiptRequired)
receiptRequired
- The receiptRequired to set.public boolean equals(BaseMessageTranslator translator)
translator
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |