@Deprecated public class StringPart extends PartBase
Deprecated.
Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project. It is not recommended to use it in any new code. Instead, use HTTP client API plugins as a dependency in your code. E.g. Apache HttpComponents Client API 4.x Plugin or Async HTTP Client Plugin.
Simple string parameter for a multipart post
Since:
2.0
  • Field Details

    • DEFAULT_CONTENT_TYPE

      public static final String DEFAULT_CONTENT_TYPE
      Deprecated.
      Default content encoding of string parameters.
      See Also:
    • DEFAULT_CHARSET

      public static final String DEFAULT_CHARSET
      Deprecated.
      Default charset of string parameters
      See Also:
    • DEFAULT_TRANSFER_ENCODING

      public static final String DEFAULT_TRANSFER_ENCODING
      Deprecated.
      Default transfer encoding of string parameters
      See Also:
  • Constructor Details

    • StringPart

      public StringPart(String name, String value, String charset)
      Deprecated.
      Constructor.
      Parameters:
      name - The name of the part
      value - the string to post
      charset - the charset to be used to encode the string, if null the default is used
    • StringPart

      public StringPart(String name, String value)
      Deprecated.
      Constructor.
      Parameters:
      name - The name of the part
      value - the string to post
  • Method Details

    • setCharSet

      public void setCharSet(String charSet)
      Deprecated.
      Description copied from class: PartBase
      Sets the character encoding.
      Overrides:
      setCharSet in class PartBase
      Parameters:
      charSet - the character encoding, or null to exclude the character encoding header