com.uwyn.rife.continuations
Class CallState

java.lang.Object
  extended by com.uwyn.rife.continuations.CallState

public class CallState
extends Object

Contains the state of a call continuation.

The only really important property is the continuation ID, which should contain the ID of the continuation context that was active when the call was triggered.

The state property is totally optional and is there to be used in case other state needs to be preserved for a call continuation. RIFE's web engine, for instance, uses it to tie an element's execution state to a call continuation.

Since:
1.6
Version:
$Revision: 3812 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
CallState(String continuationId, Object state)
          Creates a new CallState instance.
 
Method Summary
 String getContinuationId()
          Retrieves the ID of the continuation that triggered the call.
 Object getState()
          Retrieves the optional state that is tied to the call continuation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallState

public CallState(String continuationId,
                 Object state)
Creates a new CallState instance.

Parameters:
continuationId - the continuation context ID that triggered the call continuation
state - the optional state that should be tied to the call continuation
Since:
1.6
Method Detail

getContinuationId

public String getContinuationId()
Retrieves the ID of the continuation that triggered the call.

Returns:
the call continuation's ID
Since:
1.6

getState

public Object getState()
Retrieves the optional state that is tied to the call continuation.

Returns:
the call continuation's optional state; or

null if no additional state is tied to it

Since:
1.6


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.