Package org.eclipse.jetty.client
Class ByteBufferRequestContent
java.lang.Object
org.eclipse.jetty.io.content.ByteBufferContentSource
org.eclipse.jetty.client.ByteBufferRequestContent
- All Implemented Interfaces:
Request.Content
,Content.Source
- Direct Known Subclasses:
BytesRequestContent
A Request.Content
for ByteBuffer
s.
The position and limit of the ByteBuffer
s passed to the constructor are not modified;
content production returns a slice
of the original ByteBuffer
.
-
Constructor Summary
ConstructorDescriptionByteBufferRequestContent
(String contentType, ByteBuffer... byteBuffers) ByteBufferRequestContent
(String contentType, Collection<ByteBuffer> byteBuffers) ByteBufferRequestContent
(ByteBuffer... byteBuffers) -
Method Summary
Methods inherited from class org.eclipse.jetty.io.content.ByteBufferContentSource
demand, fail, getByteBuffers, getLength, read, rewind
-
Constructor Details
-
ByteBufferRequestContent
-
ByteBufferRequestContent
-
ByteBufferRequestContent
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfaceRequest.Content
- Returns:
- the content type string such as "application/octet-stream" or
"application/json;charset=UTF8", or null if the
Content-Type
header must not be set
-