org.sblim.slp.internal.msg
public class ServiceReply extends ReplyMessage
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
getErrorCode
fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, setXID, toString
public ServiceReply(int pErrorCode, List<ServiceURL> pURLEntries)
pErrorCode
- pURLEntries
- - list of ServiceURLspublic ServiceReply(String pLangTag, int pErrorCode, List<ServiceURL> pURLEntries, List<Exception> pURLExceptions)
pLangTag
- pErrorCode
- pURLEntries
- - list of ServiceURLspURLExceptions
- - list of URL Exceptionspublic ServiceReply(MsgHeader pHeader, int pErrorCode, List<ServiceURL> pURLEntries, List<Exception> pURLExceptions)
pHeader
- pErrorCode
- pURLEntries
- - list of ServiceURLspURLExceptions
- - list of URL Exceptionspublic static SLPMessage parse(MsgHeader pHdr, SLPInputStream pInStr) throws ServiceLocationException, IOException
pHdr
- pInStr
- ServiceLocationException
IOException
public Iterator<ServiceURL> getResultIterator()
getResultIterator
in class ReplyMessage
public Iterator<Exception> getExceptionIterator()
getExceptionIterator
in class ReplyMessage
public List<ServiceURL> getURLEntries()
public List<Exception> getURLExceptions()
protected boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption)
serializeBody
in class SLPMessage
pOption
- Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.