Class RedirectField

  • All Implemented Interfaces:
    Translatable

    public class RedirectField
    extends Field
    implements Translatable
    A Guacamole field that redirects a user to another page.
    • Constructor Detail

      • RedirectField

        public RedirectField​(String name,
                             URI redirectUrl,
                             TranslatableMessage redirectMessage)
        Creates a new field which facilitates redirection of the user to another page.
        Parameters:
        name - The name of this field.
        redirectUrl - The URL to which the user should be redirected.
        redirectMessage - The translatable message that should be displayed for the user while the browser redirects.
    • Method Detail

      • getRedirectUrl

        public String getRedirectUrl()
        Returns the URL to which the user should be redirected.
        Returns:
        The URL to which the user should be redirected.
      • getTranslatableMessage

        public TranslatableMessage getTranslatableMessage()
        Description copied from interface: Translatable
        Returns a message which can be translated using a translation service, consisting of a translation key and optional set of substitution variables.
        Specified by:
        getTranslatableMessage in interface Translatable
        Returns:
        A message which can be translated using a translation service.