Top Description Fields Constructors Methods
org.eclipse.jetty.client

public Class ByteBufferRequestContent

extends ByteBufferContentSource
implements Content
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.client.Request.Content, org.eclipse.jetty.io.Content.Source
Known Direct Subclasses
org.eclipse.jetty.client.BytesRequestContent
Imports
java.nio.ByteBuffer, java.util.Collection, .List, org.eclipse.jetty.io.content.ByteBufferContentSource

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.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
public
ByteBufferRequestContent(String contentType, ByteBuffer... byteBuffers)

public

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from org.eclipse.jetty.io.content.ByteBufferContentSource:
demandfailgetByteBuffersgetLengthreadrewind

Field Detail

contentTypeback to summary
private final String contentType

Constructor Detail

ByteBufferRequestContentback to summary
public ByteBufferRequestContent(ByteBuffer... byteBuffers)
ByteBufferRequestContentback to summary
public ByteBufferRequestContent(String contentType, ByteBuffer... byteBuffers)
ByteBufferRequestContentback to summary
public ByteBufferRequestContent(String contentType, Collection<ByteBuffer> byteBuffers)

Method Detail

getContentTypeback to summary
public String getContentType()

Overrides default org.eclipse.jetty.client.Request.Content.getContentType.

Returns:String

Doc from org.eclipse.jetty.client.Request.Content.getContentType.

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

Annotations
@Override