Class CharsetValidation

java.lang.Object
io.jenkins.plugins.util.CharsetValidation

public class CharsetValidation extends Object
Validates the charset configuration.
Author:
Ullrich Hafner
  • Constructor Details

    • CharsetValidation

      public CharsetValidation()
  • Method Details

    • getAllCharsets

      public ComboBoxModel getAllCharsets()
      Returns all available character set names.
      Returns:
      all available character set names
    • getCharset

      public Charset getCharset(@CheckForNull String charset)
      Returns the default charset for the specified encoding string. If the default encoding is empty or null, or if the charset is not valid then the default encoding of the platform is returned.
      Parameters:
      charset - identifier of the character set
      Returns:
      the default charset for the specified encoding string
    • validateCharset

      public FormValidation validateCharset(String reportEncoding)
      Performs on-the-fly validation of the character encoding.
      Parameters:
      reportEncoding - the character encoding
      Returns:
      the validation result