org.sblim.slp.internal.msg

Class ServiceReply

Implemented Interfaces:
FunctionIDs

public class ServiceReply
extends ReplyMessage

ServiceReply message

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(String pLangTag, int pErrorCode, List pURLEntries, List pURLExceptions)
Ctor.
ServiceReply(int pErrorCode, List pURLEntries)
Ctor.
ServiceReply(MsgHeader pHeader, int pErrorCode, List pURLEntries, List pURLExceptions)
Ctor.

Method Summary

Iterator
getExceptionIterator()
getExceptionIterator
Iterator
getResultIterator()
getResultIterator
List
getURLEntries()
getURLEntries
List
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, getExceptionIterator, getResultIterator

Methods inherited from class org.sblim.slp.internal.msg.SLPMessage

fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, serializeBody, setXID, toString

Constructor Details

ServiceReply

public ServiceReply(String pLangTag,
                    int pErrorCode,
                    List pURLEntries,
                    List pURLExceptions)
Ctor.
Parameters:
pLangTag -
pErrorCode -
pURLEntries - - list of ServiceURLs
pURLExceptions - - list of URL Exceptions

ServiceReply

public ServiceReply(int pErrorCode,
                    List pURLEntries)
Ctor.
Parameters:
pErrorCode -
pURLEntries - - list of ServiceURLs

ServiceReply

public ServiceReply(MsgHeader pHeader,
                    int pErrorCode,
                    List pURLEntries,
                    List pURLExceptions)
Ctor.
Parameters:
pHeader -
pErrorCode -
pURLEntries - - list of ServiceURLs
pURLExceptions - - list of URL Exceptions

Method Details

getExceptionIterator

public Iterator getExceptionIterator()
getExceptionIterator
Overrides:
getExceptionIterator in interface ReplyMessage
Returns:
iterator of URL Exception list

getResultIterator

public Iterator getResultIterator()
getResultIterator
Overrides:
getResultIterator in interface ReplyMessage
Returns:
iterator of URL Exception list

getURLEntries

public List getURLEntries()
getURLEntries
Returns:
list of ServiceURLs

getURLExceptions

public List getURLExceptions()
getURLExceptions
Returns:
list of URL Exceptions

parse

public static SLPMessage parse(MsgHeader pHdr,
                               SLPInputStream pInStr)
            throws ServiceLocationException,
                   IOException
parse
Parameters:
pHdr -
pInStr -
Returns:
SLPMessage

serializeBody

protected boolean serializeBody(SLPOutputStream pOutStr,
                                SerializeOption pOption)
Overrides:
serializeBody in interface SLPMessage
Returns:
true if all data is written into pOStr (all data fits into size limit)

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