Class Expectation
- java.lang.Object
-
- org.vorpal.blade.framework.callflow.Expectation
-
- All Implemented Interfaces:
Serializable
public class Expectation extends Object implements Serializable
An Expectation is used to tell the AsyncSipServlet that a particular SIP method, like CANCEL is expected. Use the 'expect' method on the Callflow class to create a lambda function to be invoked if/when that CANCEL arrives. Use the 'clear' method to stop expecting any more of those methods.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private SipApplicationSession
appSession
private Callback<SipServletRequest>
callback
private String
method
private static long
serialVersionUID
private SipSession
sipSession
-
Constructor Summary
Constructors Constructor Description Expectation(SipApplicationSession appSession, String method, Callback<SipServletRequest> callback)
Expectation(SipSession sipSession, String method, Callback<SipServletRequest> callback)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
appSession
private SipApplicationSession appSession
-
sipSession
private SipSession sipSession
-
method
private String method
-
callback
private Callback<SipServletRequest> callback
-
-
Constructor Detail
-
Expectation
public Expectation(SipSession sipSession, String method, Callback<SipServletRequest> callback)
-
Expectation
public Expectation(SipApplicationSession appSession, String method, Callback<SipServletRequest> callback)
-
-