Class ServiceRegistration
java.lang.Object
org.sblim.slp.internal.msg.SLPMessage
org.sblim.slp.internal.msg.ServiceRegistration
- All Implemented Interfaces:
FunctionIDs
ServiceRegistration message
-
Field Summary
Fields inherited from interface 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
ConstructorsConstructorDescriptionServiceRegistration
(String pLangTag, ServiceURL pServURL, List<String> pScopeList, List<ServiceLocationAttribute> pAttrList, List<?> pAuthBlockList) Ctor.ServiceRegistration
(MsgHeader pHeader, ServiceURL pServURL, List<String> pScopeList, List<ServiceLocationAttribute> pAttrList, List<?> pAuthBlockList) Ctor.ServiceRegistration
(ServiceURL pServURL, List<String> pScopeList, List<ServiceLocationAttribute> pAttrList, List<?> pAuthBlockList) Ctor. -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeListgetScopeListgetServiceURLstatic SLPMessage
parse
(MsgHeader pHdr, SLPInputStream pInStr) parseprotected boolean
serializeBody
(SLPOutputStream pOutStr, SerializeOption pOption) Methods inherited from class SLPMessage
fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, setXID, toString
-
Constructor Details
-
ServiceRegistration
public ServiceRegistration(ServiceURL pServURL, List<String> pScopeList, List<ServiceLocationAttribute> pAttrList, List<?> pAuthBlockList) Ctor.- Parameters:
pServURL
-pScopeList
- - list of scope stringspAttrList
- - list of ServiceLocationAttributespAuthBlockList
-
-
ServiceRegistration
public ServiceRegistration(String pLangTag, ServiceURL pServURL, List<String> pScopeList, List<ServiceLocationAttribute> pAttrList, List<?> pAuthBlockList) Ctor.- Parameters:
pLangTag
-pServURL
-pScopeList
- - list of scope stringspAttrList
- - list of ServiceLocationAttributespAuthBlockList
-
-
ServiceRegistration
public ServiceRegistration(MsgHeader pHeader, ServiceURL pServURL, List<String> pScopeList, List<ServiceLocationAttribute> pAttrList, List<?> pAuthBlockList) Ctor.- Parameters:
pHeader
-pServURL
-pScopeList
- - list of scope stringspAttrList
- - list of ServiceLocationAttributespAuthBlockList
-
-
-
Method Details
-
parse
public static SLPMessage parse(MsgHeader pHdr, SLPInputStream pInStr) throws ServiceLocationException, IOException parse- Parameters:
pHdr
-pInStr
-- Returns:
- SLPMessage
- Throws:
ServiceLocationException
IOException
-
getServiceURL
-
getScopeList
-
getAttributeList
-
serializeBody
- Specified by:
serializeBody
in classSLPMessage
- Parameters:
pOption
-- Returns:
- true if all data is written into pOStr (all data fits into size limit)
-