Class ByteArrayRequestEntity

  • All Implemented Interfaces:
    RequestEntity

    public class ByteArrayRequestEntity
    extends Object
    implements RequestEntity
    A RequestEntity that contains an array of bytes.
    Since:
    3.0
    • Constructor Detail

      • ByteArrayRequestEntity

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

        public ByteArrayRequestEntity​(byte[] content,
                                      String contentType)
        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.