Class PartBase
java.lang.Object
org.apache.commons.httpclient.methods.multipart.Part
org.apache.commons.httpclient.methods.multipart.PartBase
- Direct Known Subclasses:
FilePart,StringPart
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.
Provides setters and getters for the basic Part properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the character encoding of this part.Deprecated.Returns the content type of this part.getName()Deprecated.Returns the name.Deprecated.Returns the transfer encoding of this part.voidsetCharSet(String charSet) Deprecated.Sets the character encoding.voidsetContentType(String contentType) Deprecated.Sets the content type.voidDeprecated.Sets the part name.voidsetTransferEncoding(String transferEncoding) Deprecated.Sets the transfer encoding.Methods inherited from class org.apache.commons.httpclient.methods.multipart.Part
getBoundary, getLengthOfParts, getLengthOfParts, isRepeatable, length, send, sendParts, sendParts, toString
-
Constructor Details
-
PartBase
Deprecated.Constructor.- Parameters:
name- The name of the partcontentType- The content type, ornullcharSet- The character encoding, ornulltransferEncoding- The transfer encoding, ornull
-
-
Method Details
-
getName
Deprecated.Returns the name. -
getContentType
Deprecated.Returns the content type of this part.- Specified by:
getContentTypein classPart- Returns:
- String The name.
-
getCharSet
Deprecated.Return the character encoding of this part.- Specified by:
getCharSetin classPart- Returns:
- String The name.
-
getTransferEncoding
Deprecated.Returns the transfer encoding of this part.- Specified by:
getTransferEncodingin classPart- Returns:
- String The name.
-
setCharSet
Deprecated.Sets the character encoding.- Parameters:
charSet- the character encoding, ornullto exclude the character encoding header
-
setContentType
Deprecated.Sets the content type.- Parameters:
contentType- the content type, ornullto exclude the content type header
-
setName
Deprecated.Sets the part name.- Parameters:
name-
-
setTransferEncoding
Deprecated.Sets the transfer encoding.- Parameters:
transferEncoding- the transfer encoding, ornullto exclude the transfer encoding header
-