Package org.forgerock.selfservice.core
Class StageResponse
java.lang.Object
org.forgerock.selfservice.core.StageResponse
Stage response represents a response from having invoked a progress stage.
- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder assists with the creation ofStageResponseinstances.static interfaceRequirements builder allows for the definition of a snapshot token callback, which gets invoked with just prior to requirements being sent to the client. -
Method Summary
Modifier and TypeMethodDescriptionReturns the callback instance.Returns the requirements.Returns the stage tag.booleanReturnstrueif the response contains a snapshot token callback instance.booleanReturnstrueif the response has any requirements.static StageResponse.BuilderNew builder to help construct a stage response.
-
Method Details
-
getStageTag
Returns the stage tag.- Returns:
- the stage tag
-
hasRequirements
public boolean hasRequirements()Returnstrueif the response has any requirements.- Returns:
trueif the response has any requirements
-
getRequirements
Returns the requirements.- Returns:
- the requirements
-
hasCallback
public boolean hasCallback()Returnstrueif the response contains a snapshot token callback instance.- Returns:
trueif the response contains a snapshot token callback instance
-
getCallback
Returns the callback instance.- Returns:
- the callback instance
-
newBuilder
New builder to help construct a stage response.- Returns:
- new builder
-