Package org.jivesoftware.smack.fsm
Class State
java.lang.Object
org.jivesoftware.smack.fsm.State
- Direct Known Subclasses:
NoOpState
,State.AbstractTransport
Note that this is an non-static inner class of XmppClientToServerConnection so that states can inspect and modify
the connection.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ModularXmppClientToServerConnectionInternal
protected final StateDescriptor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
State
(StateDescriptor stateDescriptor, ModularXmppClientToServerConnectionInternal connectionInternal) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
ensureNotOnOurWayToAuthenticatedAndResourceBound
(WalkStateGraphContext walkStateGraphContext) isTransitionToPossible
(WalkStateGraphContext walkStateGraphContext) Check if the state should be activated.void
toString()
abstract StateTransitionResult.AttemptResult
transitionInto
(WalkStateGraphContext walkStateGraphContext)
-
Field Details
-
stateDescriptor
-
connectionInternal
-
-
Constructor Details
-
State
protected State(StateDescriptor stateDescriptor, ModularXmppClientToServerConnectionInternal connectionInternal)
-
-
Method Details
-
isTransitionToPossible
public StateTransitionResult.TransitionImpossible isTransitionToPossible(WalkStateGraphContext walkStateGraphContext) throws SmackException Check if the state should be activated.- Parameters:
walkStateGraphContext
- the context of the current state graph walk.- Returns:
null
if the state should be activated.- Throws:
SmackException
- in case a Smack exception occurs.
-
transitionInto
public abstract StateTransitionResult.AttemptResult transitionInto(WalkStateGraphContext walkStateGraphContext) throws IOException, SmackException, InterruptedException, XMPPException -
getStateDescriptor
-
resetState
-
toString
-
ensureNotOnOurWayToAuthenticatedAndResourceBound
protected final void ensureNotOnOurWayToAuthenticatedAndResourceBound(WalkStateGraphContext walkStateGraphContext)
-