org.livetribe.slp.spi.msg
Class SrvReg
java.lang.Object
org.livetribe.slp.spi.msg.BytesBlock
org.livetribe.slp.spi.msg.Message
org.livetribe.slp.spi.msg.SrvReg
public class SrvReg
- extends Message
The RFC 2608 SrvReg message body is the following:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Service Location header (function = SrvReg = 3) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| [URL-Entry] \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| length of service type string | [service-type] \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| length of [scope-list] | [scope-list] \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| length of [attr-list] string | [attr-list] \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|# of AttrAuths |(if present) Attribute Authentication Blocks...\
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Version:
- $Rev: 159 $ $Date: 2006-06-06 22:17:40 +0200 (Tue, 06 Jun 2006) $
Fields inherited from class org.livetribe.slp.spi.msg.Message |
ATTR_RPLY_TYPE, ATTR_RQST_TYPE, DA_ADVERT_TYPE, SA_ADVERT_TYPE, SRV_ACK_TYPE, SRV_DEREG_TYPE, SRV_REG_TYPE, SRV_RPLY_TYPE, SRV_RQST_TYPE, SRV_TYPE_RPLY_TYPE, SRV_TYPE_RQST_TYPE |
Methods inherited from class org.livetribe.slp.spi.msg.Message |
addExtension, attributesToBytes, deserialize, deserializeExtensions, getExtensions, getLanguage, getXID, isFresh, isMulticast, isOverflow, scopesToBytes, serialize, serializeExtensions, serviceTypeToBytes, setFresh, setLanguage, setMulticast, setOverflow, setXID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SrvReg
public SrvReg()
serializeBody
protected byte[] serializeBody()
throws ServiceLocationException
- Specified by:
serializeBody
in class Message
- Throws:
ServiceLocationException
deserializeBody
protected void deserializeBody(byte[] bytes)
throws ServiceLocationException
- Specified by:
deserializeBody
in class Message
- Throws:
ServiceLocationException
getMessageType
public byte getMessageType()
- Specified by:
getMessageType
in class Message
getURLEntry
public URLEntry getURLEntry()
setURLEntry
public void setURLEntry(URLEntry urlEntry)
getServiceType
public ServiceType getServiceType()
setServiceType
public void setServiceType(ServiceType serviceType)
getScopes
public Scopes getScopes()
setScopes
public void setScopes(Scopes scopes)
getAttributes
public Attributes getAttributes()
setAttributes
public void setAttributes(Attributes attributes)
getAuthenticationBlocks
public AuthenticationBlock[] getAuthenticationBlocks()
setAuthenticationBlocks
public void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks)
updateAttributes
public void updateAttributes(Attributes newAttributes)
removeAttributes
public void removeAttributes(Attributes tags)
Copyright © 2006-2012 LiveTribe. All Rights Reserved.