org.livetribe.slp.spi.msg
Class AttributeListExtension

java.lang.Object
  extended by org.livetribe.slp.spi.msg.BytesBlock
      extended by org.livetribe.slp.spi.msg.Extension
          extended by org.livetribe.slp.spi.msg.AttributeListExtension

public class AttributeListExtension
extends Extension

The RFC 3059 Attribute List Extension 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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |      Extension ID = 0x0002    |     Next Extension Offset     |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Offset, contd.|      Service URL Length       |  Service URL  /
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |     Attribute List Length     |         Attribute List        /
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |# of AttrAuths |(if present) Attribute Authentication Blocks.../
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 

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.Extension
ATTRIBUTE_LIST_EXTENSION_ID, ID_BYTES_LENGTH, IDENTIFIER_EXTENSION_ID, NEXT_EXTENSION_OFFSET_BYTES_LENGTH
 
Fields inherited from class org.livetribe.slp.spi.msg.BytesBlock
EMPTY_BYTES, EMPTY_STRINGS
 
Constructor Summary
AttributeListExtension()
           
 
Method Summary
protected  void deserializeBody(byte[] bodyBytes)
           
static List findAll(Collection extensions)
          Returns all AttributeListExtensions found in the given collection of extensions, or an empty list if the extension collection does not contain AttributeListExtensions.
static AttributeListExtension findFirst(Collection extensions)
          Returns the first AttributeListExtension found in the given collection of extensions, or null if the extension collection does not contain an AttributeListExtension.
 Attributes getAttributes()
           
 AuthenticationBlock[] getAuthenticationBlocks()
           
 int getId()
          Returns the extension id that identifies this extension.
 String getURL()
           
protected  byte[] serializeBody()
           
 void setAttributes(Attributes attributes)
           
 void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks)
           
 void setURL(String url)
           
 
Methods inherited from class org.livetribe.slp.spi.msg.Extension
deserialize, serialize
 
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, toString, wait, wait, wait
 

Constructor Detail

AttributeListExtension

public AttributeListExtension()
Method Detail

getId

public int getId()
Description copied from class: Extension
Returns the extension id that identifies this extension.

Specified by:
getId in class Extension

getURL

public String getURL()

setURL

public void setURL(String url)

getAttributes

public Attributes getAttributes()

setAttributes

public void setAttributes(Attributes attributes)

getAuthenticationBlocks

public AuthenticationBlock[] getAuthenticationBlocks()

setAuthenticationBlocks

public void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks)

serializeBody

protected byte[] serializeBody()
                        throws ServiceLocationException
Specified by:
serializeBody in class Extension
Throws:
ServiceLocationException

deserializeBody

protected void deserializeBody(byte[] bodyBytes)
                        throws ServiceLocationException
Specified by:
deserializeBody in class Extension
Throws:
ServiceLocationException

findFirst

public static AttributeListExtension findFirst(Collection extensions)
Returns the first AttributeListExtension found in the given collection of extensions, or null if the extension collection does not contain an AttributeListExtension.


findAll

public static List findAll(Collection extensions)
Returns all AttributeListExtensions found in the given collection of extensions, or an empty list if the extension collection does not contain AttributeListExtensions.



Copyright © 2006-2012 LiveTribe. All Rights Reserved.