Package play.data.validation
Class Constraints.ValidationPayload
java.lang.Object
play.data.validation.Constraints.ValidationPayload
- Enclosing class:
- Constraints
-
Constructor Summary
ConstructorsConstructorDescriptionValidationPayload(Lang lang, Messages messages, TypedMap attrs, com.typesafe.config.Config config) -
Method Summary
-
Constructor Details
-
ValidationPayload
-
-
Method Details
-
getLang
- Returns:
- if validation happens during a Http Request the lang of that request, otherwise null
-
getMessages
- Returns:
- if validation happens during a Http Request the messages for the lang of that request, otherwise null
-
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
-