org.echarts.servlet.sip.machines
Class TransparentHandleRequestFSM

java.lang.Object
  extended by org.echarts.Machine
      extended by org.echarts.StateMachine
          extended by org.echarts.TransitionMachine
              extended by org.echarts.servlet.sip.machines.TransparentHandleRequestFSM
All Implemented Interfaces:
java.io.Serializable


public class TransparentHandleRequestFSM
extends TransitionMachine

Propagate a SIP request from receiver to sender as a B2BUA. Wait for and propagate responses until a final response is received. A special case is ACK. ACK is handled as part of INVITE handling, and should not be passed directly into this FSM.

See Also:
Serialized Form

Field Summary
static java.lang.String INCOMING_REQUEST_ATTR
           
static java.lang.String OUTGOING_REQUEST_ATTR
           
static java.lang.String SUCCESS_RESPONSE_ATTR
           
 
Constructor Summary
TransparentHandleRequestFSM(SipServletRequest incomingRequest, SipPort receiver, SipPort sender)
           
 
Method Summary
 SipServletRequest getIncomingRequest()
          Get the incoming request that started this transaction.
 SipServletRequest getOutgoingRequest()
          Get the outgoing request sent by this Machine.
 SipServletResponse getSuccessResponse()
          Get received success response to outgoing request.
 
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 org.echarts.Machine
getDefaultMachineDebugging, getDefaultMachineDebuggingGlobalStateOutput, getDefaultMachineMonitor, getDefaultMachineMonitorFilter, getDefaultMachineMonitoring, getMachineDebugging, getMachineDebuggingGlobalStateOutput, getMachineID, getMachineIndex, getMachineMonitor, getMachineMonitoring, getParentMachine, getRootMachine, getSystemDebugging, getSystemMonitoring, putEvent, setDebugging, setDefaultMachineDebugging, setDefaultMachineDebuggingGlobalStateOutput, setDefaultMachineMonitor, setDefaultMachineMonitorFilter, setDefaultMachineMonitoring, setMachineDebuggingGlobalStateOutput, setSystemDebugging, setSystemMonitoring, statePathString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INCOMING_REQUEST_ATTR

public static final java.lang.String INCOMING_REQUEST_ATTR
See Also:
Constant Field Values

OUTGOING_REQUEST_ATTR

public static final java.lang.String OUTGOING_REQUEST_ATTR
See Also:
Constant Field Values

SUCCESS_RESPONSE_ATTR

public static final java.lang.String SUCCESS_RESPONSE_ATTR
See Also:
Constant Field Values
Constructor Detail

TransparentHandleRequestFSM

public TransparentHandleRequestFSM(SipServletRequest incomingRequest,
                                   SipPort receiver,
                                   SipPort sender)
                            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getIncomingRequest

public SipServletRequest getIncomingRequest()
Get the incoming request that started this transaction.


getOutgoingRequest

public SipServletRequest getOutgoingRequest()
Get the outgoing request sent by this Machine.


getSuccessResponse

public SipServletResponse getSuccessResponse()
Get received success response to outgoing request. May be null.