org.livetribe.slp.spi.msg
Class URLEntry
java.lang.Object
org.livetribe.slp.spi.msg.BytesBlock
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) $
URLEntry
public URLEntry()
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.