Class SLPMessage

java.lang.Object
org.sblim.slp.internal.msg.SLPMessage
All Implemented Interfaces:
FunctionIDs
Direct Known Subclasses:
ReplyMessage, RequestMessage, ServiceDeregistration, ServiceRegistration

public abstract class SLPMessage extends Object implements FunctionIDs
SLPMessage
  • Constructor Details

    • SLPMessage

      public SLPMessage(int pFunctionID)
      Ctor.
      Parameters:
      pFunctionID -
    • SLPMessage

      public SLPMessage(int pFunctionID, String pLangTag)
      Ctor.
      Parameters:
      pFunctionID -
      pLangTag -
    • SLPMessage

      public SLPMessage(MsgHeader pHeader)
      Ctor.
      Parameters:
      pHeader -
  • Method Details

    • getHeader

      public MsgHeader getHeader()
      getHeader
      Returns:
      MsgHeader
    • getVersion

      public int getVersion()
      getVersion
      Returns:
      int
    • getFunctionID

      public int getFunctionID()
      getFunctionID
      Returns:
      int
    • getLangTag

      public String getLangTag()
      getLangTag
      Returns:
      String
    • overflows

      public boolean overflows()
      overflows
      Returns:
      boolean
    • fresh

      public boolean fresh()
      fresh
      Returns:
      boolean
    • multicast

      public boolean multicast()
      multicast
      Returns:
      boolean
    • getXID

      public int getXID()
      getXID
      Returns:
      int
    • setXID

      public void setXID(int pXID)
      Parameters:
      pXID -
      See Also:
    • serialize

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

      public byte[] serialize(boolean pSetMulticastFlag, boolean pDatagramLimited, boolean pKeepXID, SerializeOption pOption) throws ServiceLocationException
      serialize
      Parameters:
      pSetMulticastFlag -
      pDatagramLimited -
      pKeepXID -
      pOption - - passed to the serializeBody() method of the inherited classes
      Returns:
      byte[]
      Throws:
      ServiceLocationException
    • serializeBody

      protected abstract boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption) throws ServiceLocationException
      Returns:
      true if all data is written into pOStr (all data fits into size limit)
      Throws:
      ServiceLocationException
    • toString

      public String toString()
      Overrides:
      toString in class Object