org.livetribe.slp.spi.msg
Class AttributeListExtension
java.lang.Object
org.livetribe.slp.spi.msg.BytesBlock
org.livetribe.slp.spi.msg.Extension
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) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeListExtension
public AttributeListExtension()
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.