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,
java.util.List<ServiceURL> pURLEntries)
Ctor.
|
ServiceReply(MsgHeader pHeader,
int pErrorCode,
java.util.List<ServiceURL> pURLEntries,
java.util.List<java.lang.Exception> pURLExceptions)
Ctor.
|
ServiceReply(java.lang.String pLangTag,
int pErrorCode,
java.util.List<ServiceURL> pURLEntries,
java.util.List<java.lang.Exception> pURLExceptions)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.lang.Exception> |
getExceptionIterator()
getExceptionIterator
|
java.util.Iterator<ServiceURL> |
getResultIterator()
getResultIterator
|
java.util.List<ServiceURL> |
getURLEntries()
getURLEntries
|
java.util.List<java.lang.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, java.util.List<ServiceURL> pURLEntries)
pErrorCode
- pURLEntries
- - list of ServiceURLspublic ServiceReply(java.lang.String pLangTag, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)
pLangTag
- pErrorCode
- pURLEntries
- - list of ServiceURLspURLExceptions
- - list of URL Exceptionspublic ServiceReply(MsgHeader pHeader, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)
pHeader
- pErrorCode
- pURLEntries
- - list of ServiceURLspURLExceptions
- - list of URL Exceptionspublic static SLPMessage parse(MsgHeader pHdr, SLPInputStream pInStr) throws ServiceLocationException, java.io.IOException
pHdr
- pInStr
- ServiceLocationException
java.io.IOException
public java.util.Iterator<ServiceURL> getResultIterator()
getResultIterator
in class ReplyMessage
public java.util.Iterator<java.lang.Exception> getExceptionIterator()
getExceptionIterator
in class ReplyMessage
public java.util.List<ServiceURL> getURLEntries()
public java.util.List<java.lang.Exception> getURLExceptions()
protected boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption)
serializeBody
in class SLPMessage
pOption
- Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.