org.echarts.servlet.sip.utilities
Class CallbackUrlFormatter

java.lang.Object
  extended by org.echarts.servlet.sip.utilities.CallbackUrlFormatter

public class CallbackUrlFormatter
extends java.lang.Object

Utility class to format a URL that can be used to callback to a SIP app. Relies on implementation of ContainerAdapter.getHttpPort() for the executing container.


Constructor Summary
CallbackUrlFormatter(SipApplicationSession appSession, java.lang.String serverInfo)
          Creates a new instance.
 
Method Summary
 java.lang.String getPrefix()
          Calculates a prefix for the callback URL of the form http://:/<appname>/appSession/ .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallbackUrlFormatter

public CallbackUrlFormatter(SipApplicationSession appSession,
                            java.lang.String serverInfo)
Creates a new instance.

Parameters:
appSession - Active SipApplicationSession to be called back
serverInfo - String specifying server info (from getServerInfo())
Method Detail

getPrefix

public java.lang.String getPrefix()
Calculates a prefix for the callback URL of the form http://:/<appname>/appSession/ .

Returns: