HttpContent#getHttpHeader().
To build HttpContent message, use Builder object, which could be get following way:
HttpContent#builder(org.glassfish.grizzly.http.HttpHeader) .
HttpPacket, HttpHeader
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadCache. | |
| protected Buffer | |
| protected HttpHeader | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public HttpContent | |
| public static HttpContent. | Returns: Builder.related HTTP message header httpHeader)Returns |
| public static HttpContent | |
| public static HttpContent | |
| public static HttpContent | |
| public static HttpContent | |
| public Buffer | |
| public final HttpHeader | Returns: HttpHeader.Implements abstract org. Get the HTTP message header, associated with this content. |
| public static boolean | Returns: true if passedHttpContent is a BrokenHttpContent.Returns true if passed |
| public static boolean | Returns: true if passedHttpPacket is a HttpContent.Returns true if passed |
| public final boolean | isHeader()
Implements abstract org. Returns true, if this HTTP message represents HTTP message header, or false otherwise. |
| public boolean | isLast()
Returns: true, if the current content chunk is last, or false, if there are content chunks to follow. |
| public void | |
| protected void | |
| protected final void | |
| public void |
| CACHE_IDX | back to summary |
|---|---|
| private static final ThreadCache. | |
| content | back to summary |
|---|---|
| protected Buffer content | |
| httpHeader | back to summary |
|---|---|
| protected HttpHeader httpHeader | |
| isLast | back to summary |
|---|---|
| protected boolean isLast | |
| HttpContent | back to summary |
|---|---|
| protected HttpContent() | |
| HttpContent | back to summary |
|---|---|
| protected HttpContent(final HttpHeader httpHeader) | |
| HttpContent | back to summary |
|---|---|
| protected HttpContent(final HttpHeader httpHeader, final boolean isLast, final Buffer content) | |
| append | back to summary |
|---|---|
| public HttpContent append(final HttpContent element) Implements org.
| |
| builder | back to summary |
|---|---|
| public static HttpContent. Returns
| |
| create | back to summary |
|---|---|
| public static HttpContent create() | |
| create | back to summary |
|---|---|
| public static HttpContent create(final HttpHeader httpHeader) | |
| create | back to summary |
|---|---|
| public static HttpContent create(final HttpHeader httpHeader, final boolean isLast) | |
| create | back to summary |
|---|---|
| public static HttpContent create(final HttpHeader httpHeader, final boolean isLast, Buffer content) | |
| getContent | back to summary |
|---|---|
| public Buffer getContent() Get the HTTP message content | |
| getHttpHeader | back to summary |
|---|---|
| public final HttpHeader getHttpHeader() Implements abstract org. Get the HTTP message header, associated with this content.
| |
| isBroken | back to summary |
|---|---|
| public static boolean isBroken(final HttpContent httpContent) Returns true if passed
| |
| isContent | back to summary |
|---|---|
| public static boolean isContent(final HttpPacket httpPacket) Returns true if passed
| |
| isHeader | back to summary |
|---|---|
| public final boolean isHeader() Implements abstract org. Doc from org. Returns true, if this HTTP message represents HTTP message header, or false otherwise.
| |
| isLast | back to summary |
|---|---|
public boolean isLast()
| |
| recycle | back to summary |
|---|---|
| public void recycle() Implements org.
| |
| reset | back to summary |
|---|---|
| protected void reset() Reset the internal state. | |
| setContent | back to summary |
|---|---|
| protected final void setContent(Buffer content) | |
| setLast | back to summary |
|---|---|
| public void setLast(boolean isLast) | |
| Modifier and Type | Field and Description |
|---|---|
| protected Buffer | |
| protected HttpHeader | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public HttpContent | |
| public final T | |
| protected HttpContent | |
| public final T | Returns: this.the httpHeader)HttpHeader associated with this content.Set the |
| public final T | Returns: Builderis this HttpContent chunk last. last)Set whether this HttpContent chunk is the last. |
| public void |
| content | back to summary |
|---|---|
| protected Buffer content | |
| httpHeader | back to summary |
|---|---|
| protected HttpHeader httpHeader | |
| last | back to summary |
|---|---|
| protected boolean last | |
| Builder | back to summary |
|---|---|
| protected Builder() | |
| build | back to summary |
|---|---|
| public HttpContent build() Build the HttpContent message.
| |
| content | back to summary |
|---|---|
| public final T content(Buffer content) Set the HttpContent chunk content
| |
| create | back to summary |
|---|---|
| protected HttpContent create() | |
| httpHeader | back to summary |
|---|---|
| public final T httpHeader(final HttpHeader httpHeader) Set the
| |
| last | back to summary |
|---|---|
| public final T last(boolean last) Set whether this HttpContent chunk is the last.
| |
| reset | back to summary |
|---|---|
| public void reset() | |