Package play.data.validation
Class Constraints.ValidationPayload
- Object
-
- play.data.validation.Constraints.ValidationPayload
-
- Enclosing class:
- Constraints
public static class Constraints.ValidationPayload extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidationPayload(Lang lang, Messages messages, TypedMap attrs, com.typesafe.config.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedMap
getAttrs()
com.typesafe.config.Config
getConfig()
Lang
getLang()
Messages
getMessages()
-
-
-
Method Detail
-
getLang
public Lang getLang()
- Returns:
- if validation happens during a Http Request the lang of that request, otherwise null
-
getMessages
public Messages getMessages()
- Returns:
- if validation happens during a Http Request the messages for the lang of that request, otherwise null
-
getAttrs
public TypedMap getAttrs()
- Returns:
- if validation happens during a Http Request the request attributes of that request, otherwise null
-
getConfig
public com.typesafe.config.Config getConfig()
- Returns:
- the current application configuration, will always be set, even when accessed outside a Http Request
-
-