org.sblim.slp.internal.msg

Class ServiceRegistration

Implemented Interfaces:
FunctionIDs

public class ServiceRegistration
extends SLPMessage

ServiceRegistration message

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

ServiceRegistration(String pLangTag, ServiceURL pServURL, List pScopeList, List pAttrList, List pAuthBlockList)
Ctor.
ServiceRegistration(ServiceURL pServURL, List pScopeList, List pAttrList, List pAuthBlockList)
Ctor.
ServiceRegistration(MsgHeader pHeader, ServiceURL pServURL, List pScopeList, List pAttrList, List pAuthBlockList)
Ctor.

Method Summary

List
getAttributeList()
getAttributeList
List
getScopeList()
getScopeList
ServiceURL
getServiceURL()
getServiceURL
static SLPMessage
parse(MsgHeader pHdr, SLPInputStream pInStr)
parse
protected 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, serializeBody, setXID, toString

Constructor Details

ServiceRegistration

public ServiceRegistration(String pLangTag,
                           ServiceURL pServURL,
                           List pScopeList,
                           List pAttrList,
                           List pAuthBlockList)
Ctor.
Parameters:
pLangTag -
pServURL -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pAuthBlockList -

ServiceRegistration

public ServiceRegistration(ServiceURL pServURL,
                           List pScopeList,
                           List pAttrList,
                           List pAuthBlockList)
Ctor.
Parameters:
pServURL -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pAuthBlockList -

ServiceRegistration

public ServiceRegistration(MsgHeader pHeader,
                           ServiceURL pServURL,
                           List pScopeList,
                           List pAttrList,
                           List pAuthBlockList)
Ctor.
Parameters:
pHeader -
pServURL -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pAuthBlockList -

Method Details

getAttributeList

public List getAttributeList()
getAttributeList
Returns:
List

getScopeList

public List getScopeList()
getScopeList
Returns:
List

getServiceURL

public ServiceURL getServiceURL()
getServiceURL
Returns:
ServiceURL

parse

public static SLPMessage parse(MsgHeader pHdr,
                               SLPInputStream pInStr)
            throws ServiceLocationException,
                   IOException
parse
Parameters:
pHdr -
pInStr -
Returns:
SLPMessage

serializeBody

protected boolean serializeBody(SLPOutputStream pOutStr,
                                SerializeOption pOption)
Overrides:
serializeBody in interface SLPMessage
Returns:
true if all data is written into pOStr (all data fits into size limit)

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.