|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.Machine org.echarts.StateMachine org.echarts.TransitionMachine org.echarts.servlet.sip.EChartsSipServletMachine
public abstract class EChartsSipServletMachine
A subclass of org.echarts.TransitionMachine containing methods specific to ECharts for SIP Servlet. Application code may extends this class and override specific methods to customize behavior as needed.
Field Summary |
---|
Constructor Summary |
---|
Method Summary | |
---|---|
static Request |
createRequest(SipServletRequest req,
Monitor monitor)
Factory method to create an object of a specific subclass of Request to wrap a SipServletRequest that is dispatched to the application. |
static Response |
createResponse(SipServletResponse resp,
Monitor monitor)
Factory method to create an object of a specific subclass of Response to wrap a SipServletResponse that is dispatched to the application. |
static void |
servletInit(javax.servlet.ServletConfig config)
Called when the Servlet.init() is called by the container. |
static java.lang.String |
sessionKeyFromRequest(SipServletRequest req,
Monitor monitor)
Generate the key used for key based session targeting mechanism. |
Methods inherited from class org.echarts.TransitionMachine |
---|
addMessagelessTransition, addMessageTransition, globalStateString, globalStateString, initializeMessagelessTransitions, initializeMessageTransitions, initializeRoot, localStateString, localStateString, removePort, run, run, runNoQueueing |
Methods inherited from class org.echarts.StateMachine |
---|
setMachineDebugging, setMachineMonitor, setMachineMonitoring |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
Method Detail |
---|
public static java.lang.String sessionKeyFromRequest(SipServletRequest req, Monitor monitor)
This is only called if the top-level machine implements BoundBoxMachine. The default behavior is to return the String representation of the subscriber URI. An application may define this method in its top-level machine class to customize how the key is generated.
req
- initial request that the Application Router has selected
this application to handlemonitor
- the monitor that can be used to log messages
public static Request createRequest(SipServletRequest req, Monitor monitor)
An application may define this method in its top-level machine class to create application-specific subclasses.
req
- the request that is dispatched to the applicationmonitor
- the monitor that can be used to log messages
public static Response createResponse(SipServletResponse resp, Monitor monitor)
An application may define this method in its top-level machine class to create application-specific subclasses.
resp
- the response that is dispatched to the applicationmonitor
- the monitor that can be used to log messages
public static void servletInit(javax.servlet.ServletConfig config)
config
- a ServletConfig object container the servlet's
configuration and initialization parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |