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 ModularXmppClientToServerConnectionInternalprotected final StateDescriptor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedState(StateDescriptor stateDescriptor, ModularXmppClientToServerConnectionInternal connectionInternal) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidensureNotOnOurWayToAuthenticatedAndResourceBound(WalkStateGraphContext walkStateGraphContext) isTransitionToPossible(WalkStateGraphContext walkStateGraphContext) Check if the state should be activated.voidtoString()abstract StateTransitionResult.AttemptResulttransitionInto(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:
nullif 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
public void resetState() -
toString
-
ensureNotOnOurWayToAuthenticatedAndResourceBound
protected final void ensureNotOnOurWayToAuthenticatedAndResourceBound(WalkStateGraphContext walkStateGraphContext)
-