Class ByteArrayPartSource

java.lang.Object
org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource
All Implemented Interfaces:
PartSource

@Deprecated public class ByteArrayPartSource extends Object implements PartSource
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.
A PartSource that reads from a byte array. This class should be used when the data to post is already loaded into memory.
Since:
2.0
  • Constructor Details

    • ByteArrayPartSource

      public ByteArrayPartSource(String fileName, byte[] bytes)
      Deprecated.
      Constructor for ByteArrayPartSource.
      Parameters:
      fileName - the name of the file these bytes represent
      bytes - the content of this part
  • Method Details