Package org.sblim.slp.internal.msg
Class ServiceReply
- java.lang.Object
-
- org.sblim.slp.internal.msg.SLPMessage
-
- org.sblim.slp.internal.msg.ReplyMessage
-
- org.sblim.slp.internal.msg.ServiceReply
-
- All Implemented Interfaces:
FunctionIDs
public class ServiceReply extends ReplyMessage
ServiceReply message
-
-
Field Summary
-
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
Constructors Constructor Description ServiceReply(int pErrorCode, java.util.List<ServiceURL> pURLEntries)Ctor.ServiceReply(java.lang.String pLangTag, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)Ctor.ServiceReply(MsgHeader pHeader, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)Ctor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<java.lang.Exception>getExceptionIterator()getExceptionIteratorjava.util.Iterator<ServiceURL>getResultIterator()getResultIteratorjava.util.List<ServiceURL>getURLEntries()getURLEntriesjava.util.List<java.lang.Exception>getURLExceptions()getURLExceptionsstatic SLPMessageparse(MsgHeader pHdr, SLPInputStream pInStr)parseprotected booleanserializeBody(SLPOutputStream pOutStr, SerializeOption pOption)-
Methods inherited from class org.sblim.slp.internal.msg.ReplyMessage
getErrorCode
-
Methods inherited from class org.sblim.slp.internal.msg.SLPMessage
fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, setXID, toString
-
-
-
-
Constructor Detail
-
ServiceReply
public ServiceReply(int pErrorCode, java.util.List<ServiceURL> pURLEntries)Ctor.- Parameters:
pErrorCode-pURLEntries- - list of ServiceURLs
-
ServiceReply
public ServiceReply(java.lang.String pLangTag, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)Ctor.- Parameters:
pLangTag-pErrorCode-pURLEntries- - list of ServiceURLspURLExceptions- - list of URL Exceptions
-
ServiceReply
public ServiceReply(MsgHeader pHeader, int pErrorCode, java.util.List<ServiceURL> pURLEntries, java.util.List<java.lang.Exception> pURLExceptions)
Ctor.- Parameters:
pHeader-pErrorCode-pURLEntries- - list of ServiceURLspURLExceptions- - list of URL Exceptions
-
-
Method Detail
-
parse
public static SLPMessage parse(MsgHeader pHdr, SLPInputStream pInStr) throws ServiceLocationException, java.io.IOException
parse- Parameters:
pHdr-pInStr-- Returns:
- SLPMessage
- Throws:
ServiceLocationExceptionjava.io.IOException
-
getResultIterator
public java.util.Iterator<ServiceURL> getResultIterator()
getResultIterator- Specified by:
getResultIteratorin classReplyMessage- Returns:
- iterator of URL Exception list
-
getExceptionIterator
public java.util.Iterator<java.lang.Exception> getExceptionIterator()
getExceptionIterator- Specified by:
getExceptionIteratorin classReplyMessage- Returns:
- iterator of URL Exception list
-
getURLEntries
public java.util.List<ServiceURL> getURLEntries()
getURLEntries- Returns:
- list of ServiceURLs
-
getURLExceptions
public java.util.List<java.lang.Exception> getURLExceptions()
getURLExceptions- Returns:
- list of URL Exceptions
-
serializeBody
protected boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption)
- Specified by:
serializeBodyin classSLPMessage- Parameters:
pOption-- Returns:
- true if all data is written into pOStr (all data fits into size limit)
-
-