Package org.flasby.login2.utils
Class FormUtil
java.lang.Object
org.flasby.login2.utils.FormUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
processLoginPostData
(io.javalin.http.Context ctx, String... attributes) manages the collection of Attributes expected on a Form submitted to the WebApp.
It gathers all the Attributes valueds present on the Form and if any are missing (as specified by the attributes list passed in) then it initialize the entry in the map with an empty String.boolean
-
Constructor Details
-
FormUtil
public FormUtil()
-
-
Method Details
-
processLoginPostData
public Map<String,String> processLoginPostData(@NotNull io.javalin.http.Context ctx, String... attributes) manages the collection of Attributes expected on a Form submitted to the WebApp.
It gathers all the Attributes valueds present on the Form and if any are missing (as specified by the attributes list passed in) then it initialize the entry in the map with an empty String.- Parameters:
ctx
- the Javalin Contextattributes
- a list of all attributes required to be in the returned Map.- Returns:
- a map containing attribute values for all the attributes passed in.
-
validateParam
-
getValueOrDefault
-
build
-