org.sblim.slp.internal.msg
Class MsgHeader
java.lang.Object
org.sblim.slp.internal.msg.MsgHeader
- FunctionIDs
public class MsgHeader
extends java.lang.Object
MsgHeader
ATTR_RPLY , ATTR_RQST , DA_ADVERT , FIRST_ID , LAST_ID , SA_ADVERT , SRV_ACK , SRV_DEREG , SRV_REG , SRV_RPLY , SRV_RQST , SRV_TYPE_RPLY , SRV_TYPE_RQST |
MsgHeader(int pVersion, int pFunctionID, String pLangTag, boolean pOverflow, boolean pFresh, boolean pMCast, int pXID) - Ctor.
|
MsgHeader(MsgHeader pHdr) - Ctor.
|
FRESH
public static final int FRESH
FRESH
MCAST
public static final int MCAST
MCAST
OVERFLOW
public static final int OVERFLOW
OVERFLOW
RAW_HDR_LEN
public static final int RAW_HDR_LEN
RAW_HDR_LEN
VERSION
public static final byte VERSION
VERSION
MsgHeader
public MsgHeader(int pVersion,
int pFunctionID,
String pLangTag,
boolean pOverflow,
boolean pFresh,
boolean pMCast,
int pXID)
Ctor.
pVersion
- pFunctionID
- pLangTag
- pOverflow
- pFresh
- pMCast
- pXID
-
MsgHeader
public MsgHeader(MsgHeader pHdr)
Ctor.
fresh
public boolean fresh()
fresh
getFunctionID
public int getFunctionID()
getFunctionID
getLangTag
public String getLangTag()
getLangTag
getSize
public int getSize()
getSize
getVersion
public int getVersion()
getVersion
getXID
public int getXID()
- the XID which is parsed from the message. serialize() doesn't use this value, that
serializes a new XID into the stream at every call (unless pKeepXID is setted).
multicast
public boolean multicast()
multicast
overflows
public boolean overflows()
overflows
serialize
public byte[] serialize(int pBodyLength,
boolean pOverflow,
boolean pSetMultiCastFlag,
boolean pKeepXID)
serialize
pBodyLength
- pOverflow
- pSetMultiCastFlag
- pKeepXID
-
setXID
public void setXID(int pXID)
The response have to contain the same XID of the request. So this setter
can be useful.
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.