java.lang.Object
net.i2p.router.web.FormHandler.Message
Enclosing class:
FormHandler

public static class FormHandler.Messageextends Object
Message class to encapsulate the message text and the canClose flag.
  • Field Details

    • text

      private String text
      The text of the message.
    • canClose

      private boolean canClose
      True if the message can be closed.
  • Constructor Details

    • Message

      public Message(String text, boolean canClose)
      Holds a message and whether the user may dismiss it.
      Parameters:
      text - the message text shown to the user
      canClose - whether the user is allowed to dismiss it
  • Method Details

    • getText

      public String getText()
      Returns the message text.
      Returns:
      the message text as it was queued, not HTML-escaped
    • isCanClose

      public boolean isCanClose()
      Whether the user may close this form message.
      Returns:
      true if the message can be closed by the user