java.lang.Object
org.eclipse.jetty.io.content.AsyncContent
org.eclipse.jetty.client.AsyncRequestContent
- All Implemented Interfaces:
Closeable,AutoCloseable,Request.Content,org.eclipse.jetty.io.Content.Sink,org.eclipse.jetty.io.Content.Source
public class AsyncRequestContent
extends org.eclipse.jetty.io.content.AsyncContent
implements Request.Content
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source
org.eclipse.jetty.io.Content.Source.Factory -
Constructor Summary
ConstructorsConstructorDescriptionAsyncRequestContent(String contentType, ByteBuffer... buffers) AsyncRequestContent(ByteBuffer... buffers) -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(ByteBuffer buffer, org.eclipse.jetty.util.Callback callback) Methods inherited from class org.eclipse.jetty.io.content.AsyncContent
close, count, demand, fail, fail, flush, getLength, isClosed, read, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.Content.Source
demand, fail, fail, getLength, read, rewind
-
Constructor Details
-
AsyncRequestContent
-
AsyncRequestContent
-
-
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()
-
write
-