org.sblim.slp.internal.msg
Class RequestMessage

java.lang.Object
  extended by org.sblim.slp.internal.msg.SLPMessage
      extended by org.sblim.slp.internal.msg.RequestMessage
All Implemented Interfaces:
FunctionIDs
Direct Known Subclasses:
AttributeRequest, ServiceRequest, ServiceTypeRequest

public abstract class RequestMessage
extends SLPMessage

RequestMessage


Field Summary
 
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, java.util.SortedSet pPrevResponderSet, java.util.List pScopeList)
          Ctor.
RequestMessage(int pFunctionID, java.lang.String pLangTag, java.util.SortedSet pPrevResponderSet, java.util.List pScopeList)
          Ctor.
RequestMessage(MsgHeader pHeader, java.util.SortedSet pPrevResponderSet, java.util.List pScopeList)
          Ctor.
 
Method Summary
protected abstract  int[] getAllowedResponseIDs()
           
 java.util.SortedSet getPrevResponderSet()
          getPrevResponderSet
 java.util.Iterator getPrevRespondersItr()
          getPrevRespondersItr
 java.util.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(java.lang.String pResponder)
          updatePrevResponders
 
Methods inherited from class org.sblim.slp.internal.msg.SLPMessage
fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, setXID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestMessage

public RequestMessage(int pFunctionID,
                      java.util.SortedSet pPrevResponderSet,
                      java.util.List pScopeList)
Ctor.

Parameters:
pFunctionID -
pPrevResponderSet - - set of address strings
pScopeList - - list of scope strings

RequestMessage

public RequestMessage(int pFunctionID,
                      java.lang.String pLangTag,
                      java.util.SortedSet pPrevResponderSet,
                      java.util.List pScopeList)
Ctor.

Parameters:
pFunctionID -
pLangTag -
pPrevResponderSet - - set of address strings
pScopeList - - list of scope strings

RequestMessage

public RequestMessage(MsgHeader pHeader,
                      java.util.SortedSet pPrevResponderSet,
                      java.util.List pScopeList)
Ctor.

Parameters:
pHeader -
pPrevResponderSet - - set of address strings
pScopeList - - list of scope strings
Method Detail

getPrevResponderSet

public java.util.SortedSet getPrevResponderSet()
getPrevResponderSet

Returns:
SortedSet

getPrevRespondersItr

public java.util.Iterator getPrevRespondersItr()
getPrevRespondersItr

Returns:
Iterator

updatePrevResponders

public boolean updatePrevResponders(java.lang.String pResponder)
updatePrevResponders

Parameters:
pResponder -
Returns:
boolean

getScopeList

public java.util.List getScopeList()
getScopeList

Returns:
List of scope strings

isAllowedResponseType

public boolean isAllowedResponseType(SLPMessage pRspMsg)
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:
serializeBody in class SLPMessage
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()


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