public class InputContext
extends java.lang.Object
InputContext
adds support for requesting input from the user.
To check if the creator of the request that is executed is able to provide
additional information, use isSupported()
.
There is only one instance of this class (i.e. a singleton). Compared to all-static methods, this works better in a Spring-driven environment.
InputSpecification
,
InputRequiredException
Modifier and Type | Method and Description |
---|---|
static java.io.Serializable |
get(java.lang.String key)
Get value of requested variable
|
static InputContext |
getInstance() |
static boolean |
isSupported()
Is the creator of the request able to provide additional input?
|
public static InputContext getInstance()
public static java.io.Serializable get(java.lang.String key)
key
- Requested variablepublic static boolean isSupported()
InputRequiredException
s, otherwise false.Copyright © 2024. All rights reserved.