public static class HttpContent.Builder<T extends HttpContent.Builder>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Buffer |
content |
protected HttpHeader |
httpHeader |
protected boolean |
last |
| Modifier | Constructor and Description |
|---|---|
protected |
HttpContent.Builder() |
| Modifier and Type | Method and Description |
|---|---|
HttpContent |
build()
Build the HttpContent message.
|
T |
content(Buffer content)
Set the HttpContent chunk content
Buffer. |
protected HttpContent |
create() |
T |
httpHeader(HttpHeader httpHeader)
Set the
HttpHeader associated with this content. |
T |
last(boolean last)
Set whether this HttpContent chunk is the last.
|
void |
reset() |
protected boolean last
protected Buffer content
protected HttpHeader httpHeader
public final T httpHeader(HttpHeader httpHeader)
HttpHeader associated with this content.httpHeader - the HttpHeader associated with this content.public final T last(boolean last)
last - is this HttpContent chunk last.public final T content(Buffer content)
Buffer.content - the HttpContent chunk content Buffer.public HttpContent build()
public void reset()
protected HttpContent create()
Copyright © 2013 Oracle Corporation. All Rights Reserved.