org.sblim.slp.internal.msg

Class RequestMessage

Implemented Interfaces:
FunctionIDs
Known Direct Subclasses:
AttributeRequest, ServiceRequest, ServiceTypeRequest

public abstract class RequestMessage
extends SLPMessage

RequestMessage

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

RequestMessage(int pFunctionID, SortedSet pPrevResponderSet, List pScopeList)
Ctor.
RequestMessage(int pFunctionID, String pLangTag, SortedSet pPrevResponderSet, List pScopeList)
Ctor.
RequestMessage(MsgHeader pHeader, SortedSet pPrevResponderSet, List pScopeList)
Ctor.

Method Summary

protected abstract int[]
getAllowedResponseIDs()
SortedSet
getPrevResponderSet()
getPrevResponderSet
Iterator
getPrevRespondersItr()
getPrevRespondersItr
List
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

Methods inherited from class org.sblim.slp.internal.msg.SLPMessage

fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, serializeBody, setXID, toString

Constructor Details

RequestMessage

public RequestMessage(int pFunctionID,
                      SortedSet pPrevResponderSet,
                      List pScopeList)
Ctor.
Parameters:
pFunctionID -
pPrevResponderSet - - set of address strings
pScopeList - - list of scope strings

RequestMessage

public RequestMessage(int pFunctionID,
                      String pLangTag,
                      SortedSet pPrevResponderSet,
                      List pScopeList)
Ctor.
Parameters:
pFunctionID -
pLangTag -
pPrevResponderSet - - set of address strings
pScopeList - - list of scope strings

RequestMessage

public RequestMessage(MsgHeader pHeader,
                      SortedSet pPrevResponderSet,
                      List pScopeList)
Ctor.
Parameters:
pHeader -
pPrevResponderSet - - set of address strings
pScopeList - - list of scope strings

Method Details

getAllowedResponseIDs

protected abstract int[] getAllowedResponseIDs()

getPrevResponderSet

public SortedSet getPrevResponderSet()
getPrevResponderSet
Returns:
SortedSet

getPrevRespondersItr

public Iterator getPrevRespondersItr()
getPrevRespondersItr
Returns:
Iterator

getScopeList

public List getScopeList()
getScopeList
Returns:
List of scope strings

isAllowedResponseType

public boolean isAllowedResponseType(SLPMessage pRspMsg)
isAllowedResponseType
Parameters:
pRspMsg -
Returns:
boolean

serializeBody

protected boolean serializeBody(SLPOutputStream pOutStr,
                                SerializeOption pSkipResponders)
            throws ServiceLocationException
Overrides:
serializeBody in interface SLPMessage
Returns:
true if all data is written into pOStr (all data fits into size limit)

serializeRequestBody

protected abstract boolean serializeRequestBody(SLPOutputStream pOutStr)
            throws ServiceLocationException

serializeWithoutResponders

public byte[] serializeWithoutResponders(boolean pSetMulticastFlag,
                                         boolean pDatagramLimited,
                                         boolean pKeepXID)
            throws ServiceLocationException
serializeWithoutResponders
Parameters:
pSetMulticastFlag -
pDatagramLimited -
pKeepXID -
Returns:
byte[]

updatePrevResponders

public boolean updatePrevResponders(String pResponder)
updatePrevResponders
Parameters:
pResponder -
Returns:
boolean

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