Class BytesRequestContent

java.lang.Object
org.eclipse.jetty.io.content.ByteBufferContentSource
org.eclipse.jetty.client.ByteBufferRequestContent
org.eclipse.jetty.client.BytesRequestContent
All Implemented Interfaces:
Request.Content, org.eclipse.jetty.io.Content.Source
Direct Known Subclasses:
StringRequestContent

public class BytesRequestContent extends ByteBufferRequestContent
A Request.Content for byte arrays.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source

    org.eclipse.jetty.io.Content.Source.Factory
  • Constructor Summary

    Constructors
    Constructor
    Description
    BytesRequestContent(byte[]... bytes)
     
    BytesRequestContent(String contentType, byte[]... bytes)
     
  • Method Summary

    Methods inherited from class org.eclipse.jetty.client.ByteBufferRequestContent

    getContentType

    Methods inherited from class org.eclipse.jetty.io.content.ByteBufferContentSource

    demand, fail, getByteBuffers, getLength, read, rewind

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.io.Content.Source

    demand, fail, fail, getLength, read, rewind
  • Constructor Details

    • BytesRequestContent

      public BytesRequestContent(byte[]... bytes)
    • BytesRequestContent

      public BytesRequestContent(String contentType, byte[]... bytes)