org.livetribe.slp.spi.msg
Class DAAdvert

java.lang.Object
  extended by org.livetribe.slp.spi.msg.BytesBlock
      extended by org.livetribe.slp.spi.msg.Message
          extended by org.livetribe.slp.spi.msg.Rply
              extended by org.livetribe.slp.spi.msg.DAAdvert

public class DAAdvert
extends Rply

The RFC 2608 DAAdvert 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 = DAAdvert = 8)      |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |          Error Code           |  DA Stateless Boot Timestamp  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |DA Stateless Boot Time,, contd.|         Length of URL         |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 \                              URL                              \
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |     Length of [scope-list]    |         [scope-list]          \
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |     Length of [attr-list]     |          [attr-list]          \
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |    Length of [SLP SPI List]   |     [SLP SPI List] String     \
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | # Auth Blocks |         Authentication block (if any)         \
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 

Version:
$Rev: 157 $ $Date: 2006-06-05 23:29:25 +0200 (Mon, 05 Jun 2006) $

Field Summary
 
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
 
Fields inherited from class org.livetribe.slp.spi.msg.BytesBlock
EMPTY_BYTES, EMPTY_STRINGS
 
Constructor Summary
DAAdvert()
           
 
Method Summary
protected  void deserializeBody(byte[] bytes)
           
 Attributes getAttributes()
           
 AuthenticationBlock[] getAuthenticationBlocks()
           
 long getBootTime()
           
 int getErrorCode()
           
 byte getMessageType()
           
 Scopes getScopes()
           
 String[] getSecurityParameterIndexes()
           
 String getURL()
           
protected  byte[] serializeBody()
           
 void setAttributes(Attributes attributes)
           
 void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks)
           
 void setBootTime(long bootTime)
           
 void setErrorCode(int errorCode)
           
 void setScopes(Scopes scopes)
           
 void setSecurityParamIndexes(String[] securityParamIndexes)
           
 void setURL(String url)
           
 String toString()
           
 
Methods inherited from class org.livetribe.slp.spi.msg.Rply
getResponder, setResponder
 
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 org.livetribe.slp.spi.msg.BytesBlock
escape, readInt, readString, readStringArray, stringToUTF8Bytes, unescape, utf8BytesToString, writeInt, writeString, writeStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAAdvert

public DAAdvert()
Method Detail

getMessageType

public byte getMessageType()
Specified by:
getMessageType in class Message

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

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)

getBootTime

public long getBootTime()

setBootTime

public void setBootTime(long bootTime)

getURL

public String getURL()

setURL

public void setURL(String url)

getScopes

public Scopes getScopes()

setScopes

public void setScopes(Scopes scopes)

getAttributes

public Attributes getAttributes()

setAttributes

public void setAttributes(Attributes attributes)

getSecurityParameterIndexes

public String[] getSecurityParameterIndexes()

setSecurityParamIndexes

public void setSecurityParamIndexes(String[] securityParamIndexes)

getAuthenticationBlocks

public AuthenticationBlock[] getAuthenticationBlocks()

setAuthenticationBlocks

public void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2012 LiveTribe. All Rights Reserved.