Package org.sblim.slp.internal.msg
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 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
ConstructorsConstructorDescriptionServiceRegistration
(java.lang.String pLangTag, ServiceURL pServURL, java.util.List<java.lang.String> pScopeList, java.util.List<ServiceLocationAttribute> pAttrList, java.util.List<?> pAuthBlockList) Ctor.ServiceRegistration
(MsgHeader pHeader, ServiceURL pServURL, java.util.List<java.lang.String> pScopeList, java.util.List<ServiceLocationAttribute> pAttrList, java.util.List<?> pAuthBlockList) Ctor.ServiceRegistration
(ServiceURL pServURL, java.util.List<java.lang.String> pScopeList, java.util.List<ServiceLocationAttribute> pAttrList, java.util.List<?> pAuthBlockList) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionjava.util.List<ServiceLocationAttribute>
getAttributeListjava.util.List<java.lang.String>
getScopeListgetServiceURLstatic SLPMessage
parse
(MsgHeader pHdr, SLPInputStream pInStr) parseprotected boolean
serializeBody
(SLPOutputStream pOutStr, SerializeOption pOption) Methods inherited from class org.sblim.slp.internal.msg.SLPMessage
fresh, getFunctionID, getHeader, getLangTag, getVersion, getXID, multicast, overflows, serialize, serialize, setXID, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ServiceRegistration
public ServiceRegistration(ServiceURL pServURL, java.util.List<java.lang.String> pScopeList, java.util.List<ServiceLocationAttribute> pAttrList, java.util.List<?> pAuthBlockList) Ctor.- Parameters:
pServURL
-pScopeList
- - list of scope stringspAttrList
- - list of ServiceLocationAttributespAuthBlockList
-
-
ServiceRegistration
public ServiceRegistration(java.lang.String pLangTag, ServiceURL pServURL, java.util.List<java.lang.String> pScopeList, java.util.List<ServiceLocationAttribute> pAttrList, java.util.List<?> pAuthBlockList) Ctor.- Parameters:
pLangTag
-pServURL
-pScopeList
- - list of scope stringspAttrList
- - list of ServiceLocationAttributespAuthBlockList
-
-
ServiceRegistration
public ServiceRegistration(MsgHeader pHeader, ServiceURL pServURL, java.util.List<java.lang.String> pScopeList, java.util.List<ServiceLocationAttribute> pAttrList, java.util.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, java.io.IOException parse- Parameters:
pHdr
-pInStr
-- Returns:
- SLPMessage
- Throws:
ServiceLocationException
java.io.IOException
-
getServiceURL
getServiceURL- Returns:
- ServiceURL
-
getScopeList
public java.util.List<java.lang.String> getScopeList()getScopeList- Returns:
- List
-
getAttributeList
getAttributeList- Returns:
- List
-
serializeBody
- Specified by:
serializeBody
in classSLPMessage
- Parameters:
pOption
-- Returns:
- true if all data is written into pOStr (all data fits into size limit)
-