Class StringPart
- java.lang.Object
-
- org.apache.commons.httpclient.methods.multipart.Part
-
- org.apache.commons.httpclient.methods.multipart.PartBase
-
- org.apache.commons.httpclient.methods.multipart.StringPart
-
@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 Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_CHARSET
Deprecated.Default charset of string parametersstatic java.lang.String
DEFAULT_CONTENT_TYPE
Deprecated.Default content encoding of string parameters.static java.lang.String
DEFAULT_TRANSFER_ENCODING
Deprecated.Default transfer encoding of string parameters
-
Constructor Summary
Constructors Constructor Description StringPart(java.lang.String name, java.lang.String value)
Deprecated.Constructor.StringPart(java.lang.String name, java.lang.String value, java.lang.String charset)
Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
setCharSet(java.lang.String charSet)
Deprecated.Sets the character encoding.-
Methods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase
getCharSet, getContentType, getName, getTransferEncoding, setContentType, setName, setTransferEncoding
-
Methods inherited from class org.apache.commons.httpclient.methods.multipart.Part
getBoundary, getLengthOfParts, getLengthOfParts, isRepeatable, length, send, sendParts, sendParts, toString
-
-
-
-
Field Detail
-
DEFAULT_CONTENT_TYPE
public static final java.lang.String DEFAULT_CONTENT_TYPE
Deprecated.Default content encoding of string parameters.- See Also:
- Constant Field Values
-
DEFAULT_CHARSET
public static final java.lang.String DEFAULT_CHARSET
Deprecated.Default charset of string parameters- See Also:
- Constant Field Values
-
DEFAULT_TRANSFER_ENCODING
public static final java.lang.String DEFAULT_TRANSFER_ENCODING
Deprecated.Default transfer encoding of string parameters- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StringPart
public StringPart(java.lang.String name, java.lang.String value, java.lang.String charset)
Deprecated.Constructor.- Parameters:
name
- The name of the partvalue
- the string to postcharset
- the charset to be used to encode the string, ifnull
thedefault
is used
-
StringPart
public StringPart(java.lang.String name, java.lang.String value)
Deprecated.Constructor.- Parameters:
name
- The name of the partvalue
- the string to post
-
-
Method Detail
-
setCharSet
public void setCharSet(java.lang.String charSet)
Deprecated.Description copied from class:PartBase
Sets the character encoding.- Overrides:
setCharSet
in classPartBase
- Parameters:
charSet
- the character encoding, ornull
to exclude the character encoding header
-
-