Class TimeZoneField

java.lang.Object
org.apache.guacamole.form.Field
org.apache.guacamole.form.TimeZoneField

public class TimeZoneField extends Field
Represents a time zone field. The field may contain only valid time zone identifiers, as defined by the IANA time zone database. Such identifiers are also valid Java time zone IDs as dictated by TimeZone.getAvailableIDs().
  • Constructor Details

    • TimeZoneField

      public TimeZoneField(String name)
      Creates a new TimeZoneField with the given name.
      Parameters:
      name - The unique name to associate with this field.
  • Method Details

    • parse

      public static String parse(String timeZone)
      Parses the given string into a time zone ID string. As these strings are equivalent, the only transformation currently performed by this function is to ensure that a blank time zone string is parsed into null.
      Parameters:
      timeZone - The time zone string to parse, which may be null.
      Returns:
      The ID of the time zone corresponding to the given string, or null if the given time zone string was null or blank.