SFRMMessageClassifier

public class SFRMMessageClassifier

The SFRMMessageClassifier is a classifier for SFRM segments. It provide very fast and efficient access to crtiical information for it’s corresponding segment. Creation Date: 10/11/2006

Author:Twinsen Tsang

Constructors

SFRMMessageClassifier

public SFRMMessageClassifier(SFRMMessage message)

Explicit Constructor.

Parameters:
  • message – The sfrm message need to be classify.
Throws:
  • NullPointerException – if the message is null.
  • SFRMMessageException
  • Exception

Methods

getMagicNumber

public byte getMagicNumber()
Returns:Get the internal presentation of the message structure.

isAcknowledgementRequest

public boolean isAcknowledgementRequest()

isEncrypted

public boolean isEncrypted()
Returns:true if the message is encrypted.

isError

public boolean isError()
Returns:true if it is a error message.

isMeta

public boolean isMeta()
Returns:true if it is a meta message.

isPayload

public boolean isPayload()
Returns:true if it is a payload message.

isSigned

public boolean isSigned()
Returns:true if the message is signed.

setEncrypted

protected void setEncrypted(boolean isEncrypt)

[Protected]

Parameters:
  • isEncrypt – the flag indicate whether the messags is encrypted or not.

setSigned

protected void setSigned(boolean isSign)

[Protected]

Parameters:
  • isSign – the flag indicate whether the message is signed or not.