org.sblim.slp.internal.msg

Class ServiceAcknowledgment

Implemented Interfaces:
FunctionIDs

public class ServiceAcknowledgment
extends ReplyMessage

ServiceAcknowledgment 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

ServiceAcknowledgment(String pLangTag, int pErrorCode)
Ctor.
ServiceAcknowledgment(int pErrorCode)
Ctor.
ServiceAcknowledgment(MsgHeader pHeader, int pErrorCode)
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

ServiceAcknowledgment

public ServiceAcknowledgment(String pLangTag,
                             int pErrorCode)
Ctor.
Parameters:
pLangTag -
pErrorCode -

ServiceAcknowledgment

public ServiceAcknowledgment(int pErrorCode)
Ctor.
Parameters:
pErrorCode -

ServiceAcknowledgment

public ServiceAcknowledgment(MsgHeader pHeader,
                             int pErrorCode)
Ctor.
Parameters:
pHeader -
pErrorCode -

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.