Class HttpInput.Content

java.lang.Object
org.eclipse.jetty.ee9.nested.HttpInput.Content
All Implemented Interfaces:
org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
Direct Known Subclasses:
HttpInput.SpecialContent, HttpInput.WrappingContent
Enclosing class:
HttpInput

public static class HttpInput.Content extends Object implements org.eclipse.jetty.util.Callback
A content represents the production of context bytes by ContentProducer.nextContent(). There are two fundamental types of content: special and non-special. Non-special content always wraps a byte buffer that can be consumed and must be recycled once it is empty, either via Callback.succeeded() or Callback.failed(Throwable). Special content indicates a special event, like EOF or an error and never wraps a byte buffer. Calling Callback.succeeded() or Callback.failed(Throwable) on those have no effect.