public class ScriptResponse extends Object
| Constructor and Description |
|---|
ScriptResponse() |
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.json.JsonValue |
build()
Builds this ScriptResponse into a JsonValue for transport to the SDK.
|
String |
getResponse(String responseId)
Retrieve a specific response from the ScriptResponse.
|
Map<String,String> |
getResponses()
Returns an unmodifiable map of the responses this ScriptResponse holds.
|
void |
put(String responseName,
org.forgerock.json.JsonValue response) |
void |
putResponse(String responseId,
org.forgerock.json.JsonValue json)
Store a response in the ScriptResponse.
|
public void put(String responseName, org.forgerock.json.JsonValue response)
public void putResponse(String responseId, org.forgerock.json.JsonValue json)
responseId - Non null responseID.json - Non null JsonValue representing the JSON returned.public String getResponse(String responseId)
responseId - Non null responseID.public Map<String,String> getResponses()
public org.forgerock.json.JsonValue build()
throws IOException
IOException - if there were issues converting to Json.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.