|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.javax.sip.Utils
A few utilities that are used in various places by the stack. This is used to convert byte arrays to hex strings etc. Generate tags and branch identifiers and odds and ends.
Constructor Summary | |
Utils()
|
Method Summary | |
static String |
generateBranchId()
Generate a cryptographically random identifier that can be used to generate a branch identifier. |
static String |
generateCallIdentifier(String address)
Generate a call identifier. |
static String |
generateTag()
Generate a tag for a FROM header or TO header. |
static String |
getQuotedString(String str)
Put quotes around a string and return it. |
static String |
toHexString(byte[] b)
convert an array of bytes to an hexadecimal string |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static String toHexString(byte[] b)
b
- bytes array to convert to a hexadecimal
string
public static String getQuotedString(String str)
str
- string to be quoted
public static String generateCallIdentifier(String address)
public static String generateTag()
public static String generateBranchId()
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |