org.mobicents.servlet.sip.core
Class ApplicationRoutingHeaderComposer

java.lang.Object
  extended by org.mobicents.servlet.sip.core.ApplicationRoutingHeaderComposer

public class ApplicationRoutingHeaderComposer
extends java.lang.Object

This class manipulates strings representing the AR stack for cases when the container behaves as UAC. When the container acts as UAC the AR must be stored in the from-tag of the outgoing request.When the container acts as UAS/B2BUA the AR must be stored in the to-tag of the outgoing request. The string looks like this: uniqueValue_appname1_appGeneratedApplicationSessionId

Author:
vralev, Jean Deruelle

Constructor Summary
ApplicationRoutingHeaderComposer()
           
 
Method Summary
static java.lang.String[] getAppNameAndSessionId(SipApplicationDispatcher sipApplicationDispatcher, java.lang.String text)
           
static java.lang.String getHash(SipApplicationDispatcher sipApplicationDispatcher, java.lang.String applicationName, java.lang.String applicationId)
           
static java.lang.String randomString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationRoutingHeaderComposer

public ApplicationRoutingHeaderComposer()
Method Detail

randomString

public static final java.lang.String randomString()

getAppNameAndSessionId

public static final java.lang.String[] getAppNameAndSessionId(SipApplicationDispatcher sipApplicationDispatcher,
                                                              java.lang.String text)

getHash

public static final java.lang.String getHash(SipApplicationDispatcher sipApplicationDispatcher,
                                             java.lang.String applicationName,
                                             java.lang.String applicationId)


Copyright © 2009. All Rights Reserved.