java.lang.Object
org.eclipse.jetty.io.content.AsyncContent
org.eclipse.jetty.client.util.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
-
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, flush, getLength, isClosed, read, write, 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, getLength, read, rewind
-
Constructor Details
-
AsyncRequestContent
-
AsyncRequestContent
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfaceRequest.Content- Returns:
- the content type string such as "application/octet-stream" or
"application/json;charset=UTF8", or null if the
Content-Typeheader must not be set
-
write
-