Top Fields Constructors Methods
org.eclipse.jetty.client

public Class AsyncRequestContent

extends AsyncContent
implements Content
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.client.Request.Content, org.eclipse.jetty.io.Content.Source
Imports
java.nio.ByteBuffer, java.util.stream.Stream, org.eclipse.jetty.io.content.AsyncContent, org.eclipse.jetty.util.Callback

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
public
AsyncRequestContent(String contentType, ByteBuffer... buffers)

Method Summary

Modifier and TypeMethod and Description
public String
public void
write(ByteBuffer buffer, Callback callback)

Inherited from org.eclipse.jetty.io.content.AsyncContent:
closecountdemandfailfailflushgetLengthisClosedreadwrite

Field Detail

contentTypeback to summary
private final String contentType

Constructor Detail

AsyncRequestContentback to summary
public AsyncRequestContent(ByteBuffer... buffers)
AsyncRequestContentback to summary
public AsyncRequestContent(String contentType, ByteBuffer... buffers)

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
writeback to summary
public void write(ByteBuffer buffer, Callback callback)