org.sblim.slp.internal.msg

Class AttributeReply

Implemented Interfaces:
FunctionIDs

public class AttributeReply
extends ReplyMessage

AttributeReply 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

AttributeReply(String pLangTag, int pErrorCode, List pAttrList)
Ctor.
AttributeReply(int pErrorCode, List pAttrList)
Ctor.
AttributeReply(MsgHeader pHeader, int pErrorCode, List pAttrList)
Ctor.

Method Summary

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

AttributeReply

public AttributeReply(String pLangTag,
                      int pErrorCode,
                      List pAttrList)
Ctor.
Parameters:
pLangTag -
pErrorCode -
pAttrList - - list of ServiceLocationAttributes

AttributeReply

public AttributeReply(int pErrorCode,
                      List pAttrList)
Ctor.
Parameters:
pErrorCode -
pAttrList - - list of ServiceLocationAttributes

AttributeReply

public AttributeReply(MsgHeader pHeader,
                      int pErrorCode,
                      List pAttrList)
Ctor.
Parameters:
pHeader -
pErrorCode -
pAttrList - - list of ServiceLocationAttributes

Method Details

getExceptionIterator

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

getResultIterator

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

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.