Class ByteArrayRequestEntity

java.lang.Object
org.apache.commons.httpclient.methods.ByteArrayRequestEntity
All Implemented Interfaces:
RequestEntity

@Deprecated public class ByteArrayRequestEntity extends Object implements RequestEntity
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 RequestEntity that contains an array of bytes.
Since:
3.0
  • Constructor Details

    • ByteArrayRequestEntity

      public ByteArrayRequestEntity(byte[] content)
      Deprecated.
      Creates a new entity with the given content.
      Parameters:
      content - The content to set.
    • ByteArrayRequestEntity

      public ByteArrayRequestEntity(byte[] content, String contentType)
      Deprecated.
      Creates a new entity with the given content and content type.
      Parameters:
      content - The content to set.
      contentType - The content type to set or null.
  • Method Details