public abstract class State
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ModularXmppClientToServerConnectionInternal |
connectionInternal |
protected StateDescriptor |
stateDescriptor |
| Modifier | Constructor and Description |
|---|---|
protected |
State(StateDescriptor stateDescriptor,
ModularXmppClientToServerConnectionInternal connectionInternal) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureNotOnOurWayToAuthenticatedAndResourceBound(WalkStateGraphContext walkStateGraphContext) |
StateDescriptor |
getStateDescriptor() |
StateTransitionResult.TransitionImpossible |
isTransitionToPossible(WalkStateGraphContext walkStateGraphContext)
Check if the state should be activated.
|
void |
resetState() |
java.lang.String |
toString() |
abstract StateTransitionResult.AttemptResult |
transitionInto(WalkStateGraphContext walkStateGraphContext) |
protected final StateDescriptor stateDescriptor
protected final ModularXmppClientToServerConnectionInternal connectionInternal
protected State(StateDescriptor stateDescriptor, ModularXmppClientToServerConnectionInternal connectionInternal)
public StateTransitionResult.TransitionImpossible isTransitionToPossible(WalkStateGraphContext walkStateGraphContext) throws SmackException
walkStateGraphContext - the context of the current state graph walk.null if the state should be activated.SmackException - in case a Smack exception occurs.public abstract StateTransitionResult.AttemptResult transitionInto(WalkStateGraphContext walkStateGraphContext) throws java.io.IOException, SmackException, java.lang.InterruptedException, XMPPException
java.io.IOExceptionSmackExceptionjava.lang.InterruptedExceptionXMPPExceptionpublic StateDescriptor getStateDescriptor()
public void resetState()
public java.lang.String toString()
toString in class java.lang.Objectprotected final void ensureNotOnOurWayToAuthenticatedAndResourceBound(WalkStateGraphContext walkStateGraphContext)