|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.javax.sip.Utils
public class 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 | |
---|---|
String |
generateBranchId()
Generate a cryptographically random identifier that can be used to generate a branch identifier. |
String |
generateCallIdentifier(String address)
Generate a call identifier. |
String |
generateTag()
Generate a tag for a FROM header or TO header. |
static Utils |
getInstance()
|
static String |
getQuotedString(String str)
Put quotes around a string and return it. |
static String |
getSignature()
|
static void |
main(String[] args)
|
boolean |
responseBelongsToUs(SIPResponse response)
|
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 Utils getInstance()
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 String generateCallIdentifier(String address)
generateCallIdentifier
in interface UtilsExt
public String generateTag()
generateTag
in interface UtilsExt
public String generateBranchId()
generateBranchId
in interface UtilsExt
public boolean responseBelongsToUs(SIPResponse response)
public static String getSignature()
public static void main(String[] args)
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |