Class Constraints.ValidationPayload

  • Enclosing class:
    Constraints

    public static class Constraints.ValidationPayload
    extends Object
    • Constructor Detail

      • ValidationPayload

        public ValidationPayload​(Lang lang,
                                 Messages messages,
                                 TypedMap attrs,
                                 com.typesafe.config.Config config)
    • 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