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 ByteBuffers.
The position and limit of the ByteBuffers passed to the constructor are not modified;
content production returns a slice of the original ByteBuffer.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Content.Source
Content.Source.Factory - 
Constructor Summary
ConstructorsConstructorDescriptionByteBufferRequestContent(String contentType, ByteBuffer... byteBuffers) ByteBufferRequestContent(String contentType, Collection<ByteBuffer> byteBuffers) ByteBufferRequestContent(ByteBuffer... byteBuffers)  - 
Method Summary
Methods inherited from class ByteBufferContentSource
demand, fail, getByteBuffers, getLength, read, rewind 
- 
Constructor Details
- 
ByteBufferRequestContent
 - 
ByteBufferRequestContent
 - 
ByteBufferRequestContent
 
 - 
 - 
Method Details
- 
getContentType
- Specified by:
 getContentTypein interfaceRequest.Content- Returns:
 - the value of the 
Content-Typeheader for the request content, such astext/html;charset=utf-8orapplication/json, ornullto use the value fromHttpClient.getDefaultRequestContentType() 
 
 -