Package org.forgerock.selfservice.core
Class StageResponse
- java.lang.Object
-
- org.forgerock.selfservice.core.StageResponse
-
public final class StageResponse extends Object
Stage response represents a response from having invoked a progress stage.- Since:
- 0.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStageResponse.BuilderBuilder assists with the creation ofStageResponseinstances.static interfaceStageResponse.RequirementsBuilderRequirements 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotTokenCallbackgetCallback()Returns the callback instance.org.forgerock.json.JsonValuegetRequirements()Returns the requirements.StringgetStageTag()Returns the stage tag.booleanhasCallback()Returnstrueif the response contains a snapshot token callback instance.booleanhasRequirements()Returnstrueif the response has any requirements.static StageResponse.BuildernewBuilder()New builder to help construct a stage response.
-
-
-
Method Detail
-
getStageTag
public String 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
public org.forgerock.json.JsonValue 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
public SnapshotTokenCallback getCallback()
Returns the callback instance.- Returns:
- the callback instance
-
newBuilder
public static StageResponse.Builder newBuilder()
New builder to help construct a stage response.- Returns:
- new builder
-
-