org.sblim.slp.internal.msg

Class SLPMessage

public abstract class SLPMessage extends Object implements FunctionIDs

SLPMessage
Constructor Summary
SLPMessage(int pFunctionID)
Ctor.
SLPMessage(int pFunctionID, String pLangTag)
Ctor.
SLPMessage(MsgHeader pHeader)
Ctor.
Method Summary
booleanfresh()
fresh
intgetFunctionID()
getFunctionID
MsgHeadergetHeader()
getHeader
StringgetLangTag()
getLangTag
intgetVersion()
getVersion
intgetXID()
getXID
booleanmulticast()
multicast
booleanoverflows()
overflows
byte[]serialize(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID)
serialize
byte[]serialize(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID, SerializeOption pOption)
serialize
protected abstract booleanserializeBody(SLPOutputStream pOutStr, SerializeOption pOption)
voidsetXID(int pXID)

Constructor Detail

SLPMessage

public SLPMessage(int pFunctionID)
Ctor.

Parameters: pFunctionID

SLPMessage

public SLPMessage(int pFunctionID, String pLangTag)
Ctor.

Parameters: pFunctionID pLangTag

SLPMessage

public SLPMessage(MsgHeader pHeader)
Ctor.

Parameters: pHeader

Method Detail

fresh

public boolean fresh()
fresh

Returns: boolean

getFunctionID

public int getFunctionID()
getFunctionID

Returns: int

getHeader

public MsgHeader getHeader()
getHeader

Returns: MsgHeader

getLangTag

public String getLangTag()
getLangTag

Returns: String

getVersion

public int getVersion()
getVersion

Returns: int

getXID

public int getXID()
getXID

Returns: int

multicast

public boolean multicast()
multicast

Returns: boolean

overflows

public boolean overflows()
overflows

Returns: boolean

serialize

public byte[] serialize(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID)
serialize

Parameters: pSetMulticastFlag pDatagramLimited pKeepXID

Returns: byte[]

Throws: ServiceLocationException

serialize

public byte[] serialize(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID, SerializeOption pOption)
serialize

Parameters: pSetMulticastFlag pDatagramLimited pKeepXID pOption - passed to the serializeBody() method of the inherited classes

Returns: byte[]

Throws: ServiceLocationException

serializeBody

protected abstract boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption)

Returns: true if all data is written into pOStr (all data fits into size limit)

setXID

public void setXID(int pXID)

Parameters: pXID

See Also: MsgHeader

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.