org.sblim.slp.internal.msg
Class ServiceRegistration

java.lang.Object
  extended by org.sblim.slp.internal.msg.SLPMessage
      extended by 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
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.
ServiceRegistration(String pLangTag, ServiceURL pServURL, List<String> pScopeList, List<ServiceLocationAttribute> pAttrList, List<?> pAuthBlockList)
          Ctor.
 
Method Summary
 List<ServiceLocationAttribute> getAttributeList()
          getAttributeList
 List<String> 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, setXID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceRegistration

public ServiceRegistration(ServiceURL pServURL,
                           List<String> pScopeList,
                           List<ServiceLocationAttribute> pAttrList,
                           List<?> pAuthBlockList)
Ctor.

Parameters:
pServURL -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pAuthBlockList -

ServiceRegistration

public ServiceRegistration(String pLangTag,
                           ServiceURL pServURL,
                           List<String> pScopeList,
                           List<ServiceLocationAttribute> pAttrList,
                           List<?> pAuthBlockList)
Ctor.

Parameters:
pLangTag -
pServURL -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pAuthBlockList -

ServiceRegistration

public ServiceRegistration(MsgHeader pHeader,
                           ServiceURL pServURL,
                           List<String> pScopeList,
                           List<ServiceLocationAttribute> pAttrList,
                           List<?> pAuthBlockList)
Ctor.

Parameters:
pHeader -
pServURL -
pScopeList - - list of scope strings
pAttrList - - list of ServiceLocationAttributes
pAuthBlockList -
Method Detail

parse

public static SLPMessage parse(MsgHeader pHdr,
                               SLPInputStream pInStr)
                        throws ServiceLocationException,
                               IOException
parse

Parameters:
pHdr -
pInStr -
Returns:
SLPMessage
Throws:
ServiceLocationException
IOException

getServiceURL

public ServiceURL getServiceURL()
getServiceURL

Returns:
ServiceURL

getScopeList

public List<String> getScopeList()
getScopeList

Returns:
List

getAttributeList

public List<ServiceLocationAttribute> getAttributeList()
getAttributeList

Returns:
List

serializeBody

protected boolean serializeBody(SLPOutputStream pOutStr,
                                SerializeOption pOption)
Specified by:
serializeBody in class SLPMessage
Parameters:
pOption -
Returns:
true if all data is written into pOStr (all data fits into size limit)


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