org.livetribe.slp.spi.msg
Class URLEntry

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

public class URLEntry
extends BytesBlock

The RFC 2608 <URL Entry> is defined as:

  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Reserved    |          Lifetime             |   URL Length  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |URL len, contd.|            URL (variable length)              \
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |# of URL auths |            Auth. blocks (if any)              \
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 

Version:
$Rev: 130 $ $Date: 2006-05-23 23:45:17 +0200 (Tue, 23 May 2006) $

Field Summary
 
Fields inherited from class org.livetribe.slp.spi.msg.BytesBlock
EMPTY_BYTES, EMPTY_STRINGS
 
Constructor Summary
URLEntry()
           
 
Method Summary
 int deserialize(byte[] bytes, int originalOffset)
           
 boolean equals(Object obj)
           
 AuthenticationBlock[] getAuthenticationBlocks()
           
 int getLifetime()
           
 String getURL()
           
 int hashCode()
           
 byte[] serialize()
           
 void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks)
           
 void setLifetime(int lifetime)
           
 void setURL(String url)
           
 ServiceURL toServiceURL()
           
 
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

URLEntry

public URLEntry()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

serialize

public byte[] serialize()
                 throws ServiceLocationException
Throws:
ServiceLocationException

deserialize

public int deserialize(byte[] bytes,
                       int originalOffset)
                throws ServiceLocationException
Throws:
ServiceLocationException

getLifetime

public int getLifetime()

setLifetime

public void setLifetime(int lifetime)

getURL

public String getURL()

setURL

public void setURL(String url)

getAuthenticationBlocks

public AuthenticationBlock[] getAuthenticationBlocks()

setAuthenticationBlocks

public void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks)

toServiceURL

public ServiceURL toServiceURL()


Copyright © 2006-2012 LiveTribe. All Rights Reserved.