com.solers.slp
Class ServiceLocationAttribute

java.lang.Object
  |
  +--com.solers.slp.ServiceLocationAttribute
All Implemented Interfaces:
Serializable

public class ServiceLocationAttribute
extends Object
implements Serializable

Implementation of the SLP ServiceLocationAttribute class defined in RFC 2614.

Author:
Patrick Callis
See Also:
Serialized Form

Field Summary
private  String _id
           
private  Vector _values
           
 
Constructor Summary
(package private) ServiceLocationAttribute(String attr)
           
  ServiceLocationAttribute(String id, Vector values)
           
 
Method Summary
(package private) static int calcAttrListSize(Vector list)
           
(package private)  int calcSize()
           
 boolean equals(Object o)
           
static String escapeId(String id)
           
(package private) static String escapeString(String s)
           
static String escapeValue(Object value)
           
private static byte[] getAuthData(String list, String spi, int timestamp)
           
 String getId()
           
 Vector getValues()
           
 int hashCode()
           
(package private) static Vector readFromList(String list)
          Returns a Vector of ServiceLocationAttributes from an attribute list string.
 String toString()
           
(package private) static Object unEscape(String s)
           
(package private) static boolean verifyList(String list, AuthenticationBlock[] blocks)
           
(package private)  void writeAttribute(DataOutput out)
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

_id

private String _id

_values

private Vector _values
Constructor Detail

ServiceLocationAttribute

public ServiceLocationAttribute(String id,
                                Vector values)

ServiceLocationAttribute

ServiceLocationAttribute(String attr)
Method Detail

readFromList

static Vector readFromList(String list)
Returns a Vector of ServiceLocationAttributes from an attribute list string.

unEscape

static Object unEscape(String s)

escapeString

static String escapeString(String s)

escapeId

public static String escapeId(String id)

escapeValue

public static String escapeValue(Object value)

calcAttrListSize

static int calcAttrListSize(Vector list)

getValues

public Vector getValues()

getId

public String getId()

equals

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

toString

public String toString()
Overrides:
toString in class Object

writeAttribute

void writeAttribute(DataOutput out)
              throws IOException

calcSize

int calcSize()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

verifyList

static boolean verifyList(String list,
                          AuthenticationBlock[] blocks)

getAuthData

private static byte[] getAuthData(String list,
                                  String spi,
                                  int timestamp)
                           throws IOException