|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sblim.slp.internal.msg.MsgHeader
public class MsgHeader
MsgHeader
| Field Summary | |
|---|---|
static int |
FRESH
FRESH |
static int |
MCAST
MCAST |
static int |
OVERFLOW
OVERFLOW |
static int |
RAW_HDR_LEN
RAW_HDR_LEN |
static byte |
VERSION
VERSION |
| Fields inherited from interface org.sblim.slp.internal.msg.FunctionIDs |
|---|
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 |
| Constructor Summary | |
|---|---|
MsgHeader(int pVersion,
int pFunctionID,
java.lang.String pLangTag,
boolean pOverflow,
boolean pFresh,
boolean pMCast,
int pXID)
Ctor. |
|
MsgHeader(MsgHeader pHdr)
Ctor. |
|
| Method Summary | |
|---|---|
boolean |
fresh()
fresh |
int |
getFunctionID()
getFunctionID |
java.lang.String |
getLangTag()
getLangTag |
int |
getSize()
getSize |
int |
getVersion()
getVersion |
int |
getXID()
|
boolean |
multicast()
multicast |
boolean |
overflows()
overflows |
static MsgHeader |
parse(SLPInputStream pInStr)
parse |
byte[] |
serialize(int pBodyLength,
boolean pOverflow,
boolean pSetMultiCastFlag,
boolean pKeepXID)
serialize |
void |
setXID(int pXID)
The response have to contain the same XID of the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte VERSION
public static final int RAW_HDR_LEN
public static final int OVERFLOW
public static final int FRESH
public static final int MCAST
| Constructor Detail |
|---|
public MsgHeader(MsgHeader pHdr)
pHdr -
public MsgHeader(int pVersion,
int pFunctionID,
java.lang.String pLangTag,
boolean pOverflow,
boolean pFresh,
boolean pMCast,
int pXID)
pVersion - pFunctionID - pLangTag - pOverflow - pFresh - pMCast - pXID - | Method Detail |
|---|
public static MsgHeader parse(SLPInputStream pInStr)
throws ServiceLocationException,
java.io.IOException
pInStr -
ServiceLocationException
java.io.IOExceptionpublic int getVersion()
public int getFunctionID()
public java.lang.String getLangTag()
public boolean overflows()
public boolean fresh()
public boolean multicast()
public int getXID()
public void setXID(int pXID)
pXID - public int getSize()
public byte[] serialize(int pBodyLength,
boolean pOverflow,
boolean pSetMultiCastFlag,
boolean pKeepXID)
pBodyLength - pOverflow - pSetMultiCastFlag - pKeepXID -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||