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
public class ServiceRegistration extends SLPMessage
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
Constructors Constructor Description ServiceRegistration(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ServiceLocationAttribute>
getAttributeList()
getAttributeListjava.util.List<java.lang.String>
getScopeList()
getScopeListServiceURL
getServiceURL()
getServiceURLstatic 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
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public ServiceURL getServiceURL()
getServiceURL- Returns:
- ServiceURL
-
getScopeList
public java.util.List<java.lang.String> getScopeList()
getScopeList- Returns:
- List
-
getAttributeList
public java.util.List<ServiceLocationAttribute> getAttributeList()
getAttributeList- Returns:
- List
-
serializeBody
protected boolean serializeBody(SLPOutputStream pOutStr, SerializeOption pOption)
- Specified by:
serializeBody
in classSLPMessage
- Parameters:
pOption
-- Returns:
- true if all data is written into pOStr (all data fits into size limit)
-
-