org.sblim.slp.internal.msg

Class DAAdvert

Implemented Interfaces:
FunctionIDs

public class DAAdvert
extends ReplyMessage

DAAdvert 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

DAAdvert(String pLangTag, int pErrorCode, long pStatelessBootTime, String pURLStr, List pScopeList, List pAttrList, List pSPIList)
Ctor.
DAAdvert(int pErrorCode, long pStatelessBootTime, String pURLStr, List pScopeList, List pAttrList, List pSPIList)
Ctor.
DAAdvert(MsgHeader pHeader, int pErrorCode, long pStatelessBootTime, String pURLStr, List pScopeList, List pAttrList, List pSPIList)
Ctor.

Method Summary

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

DAAdvert

public DAAdvert(String pLangTag,
                int pErrorCode,
                long pStatelessBootTime,
                String pURLStr,
                List pScopeList,
                List pAttrList,
                List pSPIList)
Ctor.
Parameters:
pLangTag -
pErrorCode -
pStatelessBootTime -
pURLStr -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pSPIList -

DAAdvert

public DAAdvert(int pErrorCode,
                long pStatelessBootTime,
                String pURLStr,
                List pScopeList,
                List pAttrList,
                List pSPIList)
Ctor.
Parameters:
pErrorCode -
pStatelessBootTime -
pURLStr -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pSPIList -

DAAdvert

public DAAdvert(MsgHeader pHeader,
                int pErrorCode,
                long pStatelessBootTime,
                String pURLStr,
                List pScopeList,
                List pAttrList,
                List pSPIList)
Ctor.
Parameters:
pHeader -
pErrorCode -
pStatelessBootTime -
pURLStr -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pSPIList -

Method Details

getExceptionIterator

public Iterator getExceptionIterator()
getExceptionIterator
Overrides:
getExceptionIterator in interface ReplyMessage
Returns:
Iterator

getResultIterator

public Iterator getResultIterator()
Overrides:
getResultIterator in interface ReplyMessage
Returns:
Iterator of DADescriptors

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.