Package org.apache.guacamole.form
Class RedirectField
java.lang.Object
org.apache.guacamole.form.Field
org.apache.guacamole.form.RedirectField
- All Implemented Interfaces:
Translatable
A Guacamole field that redirects a user to another page.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.guacamole.form.Field
Field.Type
-
Constructor Summary
ConstructorsConstructorDescriptionRedirectField
(String name, URI redirectUrl, TranslatableMessage redirectMessage) Creates a new field which facilitates redirection of the user to another page. -
Method Summary
Modifier and TypeMethodDescriptionReturns the URL to which the user should be redirected.Returns a message which can be translated using a translation service, consisting of a translation key and optional set of substitution variables.Methods inherited from class org.apache.guacamole.form.Field
getName, getOptions, getType, setName, setOptions, setType
-
Constructor Details
-
RedirectField
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 Details
-
getRedirectUrl
Returns the URL to which the user should be redirected.- Returns:
- The URL to which the user should be redirected.
-
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 interfaceTranslatable
- Returns:
- A message which can be translated using a translation service.
-