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
_id
private String _id
_values
private Vector _values
ServiceLocationAttribute
public ServiceLocationAttribute(String id,
Vector values)
ServiceLocationAttribute
ServiceLocationAttribute(String attr)
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