org.livetribe.slp.spi.msg
Class IdentifierExtension

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.IdentifierExtension

public class IdentifierExtension
extends Extension

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
IdentifierExtension()
           
 
Method Summary
protected  void deserializeBody(byte[] bodyBytes)
           
 boolean equals(Object obj)
           
static Collection findAll(Collection extensions)
          Returns all IdentifierExtensions found in the given collection of extensions.
static IdentifierExtension findFirst(Collection extensions)
          Returns the first IdentifierExtension found in the given collection of extensions.
 String getHost()
           
 int getId()
          Returns the extension id that identifies this extension.
 String getIdentifier()
           
 int hashCode()
           
protected  byte[] serializeBody()
           
 void setHost(String host)
           
 void setIdentifier(String identifier)
           
 
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierExtension

public IdentifierExtension()
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getId

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

Specified by:
getId in class Extension

getIdentifier

public String getIdentifier()

setIdentifier

public void setIdentifier(String identifier)

getHost

public String getHost()

setHost

public void setHost(String host)

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 IdentifierExtension findFirst(Collection extensions)
Returns the first IdentifierExtension found in the given collection of extensions.


findAll

public static Collection findAll(Collection extensions)
Returns all IdentifierExtensions found in the given collection of extensions.



Copyright © 2006-2012 LiveTribe. All Rights Reserved.