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

public abstract class RequestMessage extends SLPMessage
RequestMessage
  • Constructor Details

    • RequestMessage

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

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

      public RequestMessage(MsgHeader pHeader, SortedSet<String> pPrevResponderSet, List<String> pScopeList)
      Ctor.
      Parameters:
      pHeader -
      pPrevResponderSet - - set of address strings
      pScopeList - - list of scope strings
  • Method Details

    • getPrevResponderSet

      public SortedSet<String> getPrevResponderSet()
      getPrevResponderSet
      Returns:
      SortedSet
    • getPrevRespondersItr

      public Iterator<String> getPrevRespondersItr()
      getPrevRespondersItr
      Returns:
      Iterator
    • updatePrevResponders

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

      public List<String> 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()