Class RequestMessage
java.lang.Object
org.sblim.slp.internal.msg.SLPMessage
org.sblim.slp.internal.msg.RequestMessage
- All Implemented Interfaces:
FunctionIDs
- Direct Known Subclasses:
AttributeRequest, ServiceRequest, ServiceTypeRequest
RequestMessage
-
Field Summary
Fields inherited from interface 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
ConstructorsConstructorDescriptionRequestMessage(int pFunctionID, String pLangTag, SortedSet pPrevResponderSet, List pScopeList) Ctor.RequestMessage(int pFunctionID, SortedSet pPrevResponderSet, List pScopeList) Ctor.RequestMessage(MsgHeader pHeader, SortedSet pPrevResponderSet, List pScopeList) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract int[]getPrevResponderSetgetPrevRespondersItrgetScopeListbooleanisAllowedResponseType(SLPMessage pRspMsg) isAllowedResponseTypeprotected booleanserializeBody(SLPOutputStream pOutStr, SerializeOption pSkipResponders) protected abstract booleanserializeRequestBody(SLPOutputStream pOutStr) byte[]serializeWithoutResponders(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID) serializeWithoutRespondersbooleanupdatePrevResponders(String pResponder) updatePrevRespondersMethods inherited from class SLPMessage
fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, setXID, toString
-
Constructor Details
-
RequestMessage
-
RequestMessage
-
RequestMessage
-
-
Method Details
-
getPrevResponderSet
-
getPrevRespondersItr
-
updatePrevResponders
updatePrevResponders- Parameters:
pResponder-- Returns:
- boolean
-
getScopeList
-
isAllowedResponseType
isAllowedResponseType- Parameters:
pRspMsg-- Returns:
- boolean
-
serializeWithoutResponders
public byte[] serializeWithoutResponders(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID) throws ServiceLocationException serializeWithoutResponders- Parameters:
pSetMulticastFlag-pDatagramLimited-pKeepXID-- Returns:
- byte[]
- Throws:
ServiceLocationException
-
serializeBody
protected boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pSkipResponders) throws ServiceLocationException - Specified by:
serializeBodyin classSLPMessage- Returns:
- true if all data is written into pOStr (all data fits into size limit)
- Throws:
ServiceLocationException
-
serializeRequestBody
protected abstract boolean serializeRequestBody(SLPOutputStream pOutStr) throws ServiceLocationException - Throws:
ServiceLocationException
-
getAllowedResponseIDs
protected abstract int[] getAllowedResponseIDs()
-