org.sblim.slp.internal.msg
Class ServiceReply

java.lang.Object
  extended by org.sblim.slp.internal.msg.SLPMessage
      extended by org.sblim.slp.internal.msg.ReplyMessage
          extended by org.sblim.slp.internal.msg.ServiceReply
All Implemented Interfaces:
FunctionIDs

public class ServiceReply
extends ReplyMessage

ServiceReply message


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
ServiceReply(int pErrorCode, List<ServiceURL> pURLEntries)
          Ctor.
ServiceReply(MsgHeader pHeader, int pErrorCode, List<ServiceURL> pURLEntries, List<Exception> pURLExceptions)
          Ctor.
ServiceReply(String pLangTag, int pErrorCode, List<ServiceURL> pURLEntries, List<Exception> pURLExceptions)
          Ctor.
 
Method Summary
 Iterator<Exception> getExceptionIterator()
          getExceptionIterator
 Iterator<ServiceURL> getResultIterator()
          getResultIterator
 List<ServiceURL> getURLEntries()
          getURLEntries
 List<Exception> getURLExceptions()
          getURLExceptions
static SLPMessage parse(MsgHeader pHdr, SLPInputStream pInStr)
          parse
protected  boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption)
           
 
Methods inherited from class org.sblim.slp.internal.msg.ReplyMessage
getErrorCode
 
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

ServiceReply

public ServiceReply(int pErrorCode,
                    List<ServiceURL> pURLEntries)
Ctor.

Parameters:
pErrorCode -
pURLEntries - - list of ServiceURLs

ServiceReply

public ServiceReply(String pLangTag,
                    int pErrorCode,
                    List<ServiceURL> pURLEntries,
                    List<Exception> pURLExceptions)
Ctor.

Parameters:
pLangTag -
pErrorCode -
pURLEntries - - list of ServiceURLs
pURLExceptions - - list of URL Exceptions

ServiceReply

public ServiceReply(MsgHeader pHeader,
                    int pErrorCode,
                    List<ServiceURL> pURLEntries,
                    List<Exception> pURLExceptions)
Ctor.

Parameters:
pHeader -
pErrorCode -
pURLEntries - - list of ServiceURLs
pURLExceptions - - list of URL Exceptions
Method Detail

parse

public static SLPMessage parse(MsgHeader pHdr,
                               SLPInputStream pInStr)
                        throws ServiceLocationException,
                               IOException
parse

Parameters:
pHdr -
pInStr -
Returns:
SLPMessage
Throws:
ServiceLocationException
IOException

getResultIterator

public Iterator<ServiceURL> getResultIterator()
getResultIterator

Specified by:
getResultIterator in class ReplyMessage
Returns:
iterator of URL Exception list

getExceptionIterator

public Iterator<Exception> getExceptionIterator()
getExceptionIterator

Specified by:
getExceptionIterator in class ReplyMessage
Returns:
iterator of URL Exception list

getURLEntries

public List<ServiceURL> getURLEntries()
getURLEntries

Returns:
list of ServiceURLs

getURLExceptions

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


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