public abstract class RequestMessage extends SLPMessage
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 and Description |
---|
RequestMessage(int pFunctionID,
SortedSet<String> pPrevResponderSet,
List<String> pScopeList)
Ctor.
|
RequestMessage(int pFunctionID,
String pLangTag,
SortedSet<String> pPrevResponderSet,
List<String> pScopeList)
Ctor.
|
RequestMessage(MsgHeader pHeader,
SortedSet<String> pPrevResponderSet,
List<String> pScopeList)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract int[] |
getAllowedResponseIDs() |
SortedSet<String> |
getPrevResponderSet()
getPrevResponderSet
|
Iterator<String> |
getPrevRespondersItr()
getPrevRespondersItr
|
List<String> |
getScopeList()
getScopeList
|
boolean |
isAllowedResponseType(SLPMessage pRspMsg)
isAllowedResponseType
|
protected boolean |
serializeBody(SLPOutputStream pOutStr,
SerializeOption pSkipResponders) |
protected abstract boolean |
serializeRequestBody(SLPOutputStream pOutStr) |
byte[] |
serializeWithoutResponders(boolean pSetMulticastFlag,
boolean pDatagramLimited,
boolean pKeepXID)
serializeWithoutResponders
|
boolean |
updatePrevResponders(String pResponder)
updatePrevResponders
|
fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, setXID, toString
public RequestMessage(int pFunctionID, SortedSet<String> pPrevResponderSet, List<String> pScopeList)
pFunctionID
- pPrevResponderSet
- - set of address stringspScopeList
- - list of scope stringspublic RequestMessage(int pFunctionID, String pLangTag, SortedSet<String> pPrevResponderSet, List<String> pScopeList)
pFunctionID
- pLangTag
- pPrevResponderSet
- - set of address stringspScopeList
- - list of scope stringspublic SortedSet<String> getPrevResponderSet()
public Iterator<String> getPrevRespondersItr()
public boolean updatePrevResponders(String pResponder)
pResponder
- public boolean isAllowedResponseType(SLPMessage pRspMsg)
pRspMsg
- public byte[] serializeWithoutResponders(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID) throws ServiceLocationException
pSetMulticastFlag
- pDatagramLimited
- pKeepXID
- ServiceLocationException
protected boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pSkipResponders) throws ServiceLocationException
serializeBody
in class SLPMessage
ServiceLocationException
protected abstract boolean serializeRequestBody(SLPOutputStream pOutStr) throws ServiceLocationException
ServiceLocationException
protected abstract int[] getAllowedResponseIDs()
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.