org.cafesip.jiplet.sip
Class ProxyUtilities
java.lang.Object
org.cafesip.jiplet.sip.ProxyUtilities
public class ProxyUtilities
- extends java.lang.Object
Utilities for the proxy.
|
Method Summary |
static java.lang.String |
generateBranchId()
Generate a cryptographically random identifier that can be used to
generate a branch identifier. |
static java.lang.String |
generateTag()
|
static boolean |
hasTopViaHeaderProxy(Jiplet jiplet,
javax.sip.message.Message message)
|
static int |
length(javax.sip.message.Message message)
|
static void |
printTransaction(javax.sip.Transaction transaction)
|
static java.lang.String |
toHexString(byte[] b)
convert an array of bytes to an hexadecimal string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BRANCH_MAGIC_COOKIE
public static final java.lang.String BRANCH_MAGIC_COOKIE
- See Also:
- Constant Field Values
ProxyUtilities
public ProxyUtilities()
generateBranchId
public static java.lang.String generateBranchId()
- Generate a cryptographically random identifier that can be used to
generate a branch identifier.
- Returns:
- a cryptographically random gloablly unique string that can be
used as a branch identifier.
toHexString
public static java.lang.String toHexString(byte[] b)
- convert an array of bytes to an hexadecimal string
- Parameters:
b - bytes array to convert to a hexadecimal string
- Returns:
- a string
generateTag
public static java.lang.String generateTag()
length
public static int length(javax.sip.message.Message message)
hasTopViaHeaderProxy
public static boolean hasTopViaHeaderProxy(Jiplet jiplet,
javax.sip.message.Message message)
printTransaction
public static void printTransaction(javax.sip.Transaction transaction)
http://www.cafesip.org