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 public abstract class PartBase extends Part
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 Constructor Description PartBase(java.lang.String name, java.lang.String contentType, java.lang.String charSet, java.lang.String transferEncoding)
Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCharSet()
Deprecated.Return the character encoding of this part.java.lang.String
getContentType()
Deprecated.Returns the content type of this part.java.lang.String
getName()
Deprecated.Returns the name.java.lang.String
getTransferEncoding()
Deprecated.Returns the transfer encoding of this part.void
setCharSet(java.lang.String charSet)
Deprecated.Sets the character encoding.void
setContentType(java.lang.String contentType)
Deprecated.Sets the content type.void
setName(java.lang.String name)
Deprecated.Sets the part name.void
setTransferEncoding(java.lang.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 Detail
-
PartBase
public PartBase(java.lang.String name, java.lang.String contentType, java.lang.String charSet, java.lang.String transferEncoding)
Deprecated.Constructor.- Parameters:
name
- The name of the partcontentType
- The content type, ornull
charSet
- The character encoding, ornull
transferEncoding
- The transfer encoding, ornull
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Returns the name.- Specified by:
getName
in classPart
- Returns:
- The name.
- See Also:
Part.getName()
-
getContentType
public java.lang.String getContentType()
Deprecated.Returns the content type of this part.- Specified by:
getContentType
in classPart
- Returns:
- String The name.
-
getCharSet
public java.lang.String getCharSet()
Deprecated.Return the character encoding of this part.- Specified by:
getCharSet
in classPart
- Returns:
- String The name.
-
getTransferEncoding
public java.lang.String getTransferEncoding()
Deprecated.Returns the transfer encoding of this part.- Specified by:
getTransferEncoding
in classPart
- Returns:
- String The name.
-
setCharSet
public void setCharSet(java.lang.String charSet)
Deprecated.Sets the character encoding.- Parameters:
charSet
- the character encoding, ornull
to exclude the character encoding header
-
setContentType
public void setContentType(java.lang.String contentType)
Deprecated.Sets the content type.- Parameters:
contentType
- the content type, ornull
to exclude the content type header
-
setName
public void setName(java.lang.String name)
Deprecated.Sets the part name.- Parameters:
name
-
-
setTransferEncoding
public void setTransferEncoding(java.lang.String transferEncoding)
Deprecated.Sets the transfer encoding.- Parameters:
transferEncoding
- the transfer encoding, ornull
to exclude the transfer encoding header
-
-