Class FormMessage

java.lang.Object
org.keycloak.models.utils.FormMessage

public class FormMessage extends Object
Message (eg. error) to be shown in form.
Author:
Vlastimil Elias (velias at redhat dot com)
  • Field Details

    • GLOBAL

      public static final String GLOBAL
      Value used for field if message is global (not tied to any specific form field)
      See Also:
  • Constructor Details

    • FormMessage

      public FormMessage()
    • FormMessage

      public FormMessage(String field, String message, Object... parameters)
      Create message.
      Parameters:
      field - this message is for. GLOBAL is used if null
      message - key for the message
      parameters - to be formatted into message
    • FormMessage

      public FormMessage(String message, Object... parameters)
    • FormMessage

      public FormMessage(String field, String message)
      Create message without parameters.
      Parameters:
      field - this message is for. GLOBAL is used if null
      message - key for the message
  • Method Details

    • getField

      public String getField()
    • getMessage

      public String getMessage()
    • getParameters

      public Object[] getParameters()
    • toString

      public String toString()
      Overrides:
      toString in class Object