Class ServiceReply

java.lang.Object
All Implemented Interfaces:
FunctionIDs

public class ServiceReply extends ReplyMessage
ServiceReply message
  • Constructor Details

    • ServiceReply

      public ServiceReply(int pErrorCode, java.util.List<ServiceURL> pURLEntries)
      Ctor.
      Parameters:
      pErrorCode -
      pURLEntries - - list of ServiceURLs
    • ServiceReply

      public ServiceReply(java.lang.String pLangTag, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)
      Ctor.
      Parameters:
      pLangTag -
      pErrorCode -
      pURLEntries - - list of ServiceURLs
      pURLExceptions - - list of URL Exceptions
    • ServiceReply

      public ServiceReply(MsgHeader pHeader, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)
      Ctor.
      Parameters:
      pHeader -
      pErrorCode -
      pURLEntries - - list of ServiceURLs
      pURLExceptions - - list of URL Exceptions
  • Method Details

    • parse

      public static SLPMessage parse(MsgHeader pHdr, SLPInputStream pInStr) throws ServiceLocationException, java.io.IOException
      parse
      Parameters:
      pHdr -
      pInStr -
      Returns:
      SLPMessage
      Throws:
      ServiceLocationException
      java.io.IOException
    • getResultIterator

      public java.util.Iterator<ServiceURL> getResultIterator()
      getResultIterator
      Specified by:
      getResultIterator in class ReplyMessage
      Returns:
      iterator of URL Exception list
    • getExceptionIterator

      public java.util.Iterator<java.lang.Exception> getExceptionIterator()
      getExceptionIterator
      Specified by:
      getExceptionIterator in class ReplyMessage
      Returns:
      iterator of URL Exception list
    • getURLEntries

      public java.util.List<ServiceURL> getURLEntries()
      getURLEntries
      Returns:
      list of ServiceURLs
    • getURLExceptions

      public java.util.List<java.lang.Exception> getURLExceptions()
      getURLExceptions
      Returns:
      list of URL Exceptions
    • serializeBody

      protected boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption)
      Specified by:
      serializeBody in class SLPMessage
      Parameters:
      pOption -
      Returns:
      true if all data is written into pOStr (all data fits into size limit)