| org.apache.mina.statemachine.context.StateContext
All known Subclasses: org.apache.mina.statemachine.context.AbstractStateContext,
StateContext | public interface StateContext (Code) | | StateContext objects are used to store the current
State and
any application specific attributes for a specific client of a
StateMachine . Since
StateMachine s are singletons and shared
by all clients using the
StateMachine this is where client specific
data needs to be stored.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 586695 $, $Date: 2007-10-20 04:01:17 -0600 (Sat, 20 Oct 2007) $ |
getAttribute | Object getAttribute(Object key)(Code) | | Returns the value of the attribute with the specified key or
null if not found.
Parameters: key - the key. the value or null . |
getCurrentState | State getCurrentState()(Code) | | Returns the current
State . This is only meant for internal use.
the current State. |
setAttribute | void setAttribute(Object key, Object value)(Code) | | Sets the value of the attribute with the specified key.
Parameters: key - the key. Parameters: value - the value. |
setCurrentState | void setCurrentState(State state)(Code) | | Sets the current
State . This is only meant for internal use.
Don't call it directly!
Parameters: state - the new current State. |
|
|