HttpContent message, which represents HTTP trailer message. Applicable only for chunked HTTP messages.
| Modifier and Type | Class and Description |
|---|---|
| public static class | HttpTrailer.
HttpTrailer message builder. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadCache. | |
| private MimeHeaders |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHeader(final String name, final String value)
Implements org. Add the HTTP mime header. |
| public void | addHeader(final String name, final HeaderValue value)
Implements org. Add the HTTP mime header. |
| public void | addHeader(final Header header, final String value)
Implements org. Add the HTTP mime header. |
| public void | addHeader(final Header header, final HeaderValue value)
Implements org. Add the HTTP mime header. |
| public static HttpTrailer. | Returns: Builder.Hides org. Returns |
| public boolean | containsHeader(final String name)
Implements org. Returns true, if the mime header with the specific name is present among the HttpHeader mime headers, or false otherwise. |
| public boolean | containsHeader(final Header header)
Implements org. Returns true, if the mime |
| public static HttpTrailer | |
| public static HttpTrailer | |
| public String | getHeader(final String name)
Implements org. Get the value, of the specific HTTP mime header. |
| public String | getHeader(final Header header)
Implements org. Get the value, of the specific HTTP mime header. |
| public MimeHeaders | getHeaders()
Implements org. Get all |
| public final boolean | Returns: Always true true for the trailer message.Overrides org. Always true true for the trailer message. |
| public static boolean | |
| public void | recycle()
Overrides org. Implements org.
|
| protected void | |
| public void | setHeader(final String name, final String value)
Implements org. Set the value, of the specific HTTP mime header. |
| public void | setHeader(final String name, final HeaderValue value)
Implements org. Set the value, of the specific HTTP mime header. |
| public void | setHeader(final Header header, final String value)
Implements org. Set the value, of the specific HTTP mime header. |
| public void | setHeader(final Header header, final HeaderValue value)
Implements org. Set the value, of the specific HTTP mime header. |
| protected void |
| CACHE_IDX | back to summary |
|---|---|
| private static final ThreadCache. | |
| trailers | back to summary |
|---|---|
| private MimeHeaders trailers | |
| HttpTrailer | back to summary |
|---|---|
| protected HttpTrailer(HttpHeader httpHeader) | |
| addHeader | back to summary |
|---|---|
| public void addHeader(final String name, final String value) Implements org. Doc from org. Add the HTTP mime header.
| |
| addHeader | back to summary |
|---|---|
| public void addHeader(final String name, final HeaderValue value) Implements org. Doc from org. Add the HTTP mime header.
| |
| addHeader | back to summary |
|---|---|
| public void addHeader(final Header header, final String value) Implements org. Doc from org. Add the HTTP mime header.
| |
| addHeader | back to summary |
|---|---|
| public void addHeader(final Header header, final HeaderValue value) Implements org. Doc from org. Add the HTTP mime header.
| |
| builder | back to summary |
|---|---|
| public static HttpTrailer. Hides org. Returns
| |
| containsHeader | back to summary |
|---|---|
| public boolean containsHeader(final String name) Implements org. Doc from org. Returns true, if the mime header with the specific name is present among the HttpHeader mime headers, or false otherwise.
| |
| containsHeader | back to summary |
|---|---|
| public boolean containsHeader(final Header header) Implements org. Doc from org. Returns true, if the mime
| |
| create | back to summary |
|---|---|
| public static HttpTrailer create() | |
| create | back to summary |
|---|---|
| public static HttpTrailer create(HttpHeader httpHeader) | |
| getHeader | back to summary |
|---|---|
| public String getHeader(final String name) Implements org. Doc from org. Get the value, of the specific HTTP mime header.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(final Header header) Implements org. Doc from org. Get the value, of the specific HTTP mime header.
| |
| getHeaders | back to summary |
|---|---|
| public MimeHeaders getHeaders() Implements org. Doc from org. Get all
| |
| isLast | back to summary |
|---|---|
| public final boolean isLast() Overrides org. Always true true for the trailer message.
| |
| isTrailer | back to summary |
|---|---|
public static boolean isTrailer(HttpContent httpContent)
| |
| recycle | back to summary |
|---|---|
| public void recycle() Overrides org. Implements org.
| |
| reset | back to summary |
|---|---|
| protected void reset() Overrides org. Doc from org. Reset the internal state.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(final String name, final String value) Implements org. Doc from org. Set the value, of the specific HTTP mime header.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(final String name, final HeaderValue value) Implements org. Doc from org. Set the value, of the specific HTTP mime header.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(final Header header, final String value) Implements org. Doc from org. Set the value, of the specific HTTP mime header.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(final Header header, final HeaderValue value) Implements org. Doc from org. Set the value, of the specific HTTP mime header.
| |
| setTrailers | back to summary |
|---|---|
| protected void setTrailers(final MimeHeaders trailers) Set the mime trailers.
| |
| Modifier and Type | Field and Description |
|---|---|
| private MimeHeaders |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public HttpTrailer | Returns: HttpTrailerOverrides org. Build the HttpTrailer message. |
| protected HttpContent | |
| public HttpTrailer. | |
| public HttpTrailer. |
| mimeTrailers | back to summary |
|---|---|
| private MimeHeaders mimeTrailers | |
| Builder | back to summary |
|---|---|
| protected Builder() | |
| build | back to summary |
|---|---|
| public HttpTrailer build() Overrides org. Build the HttpTrailer message.
| |
| create | back to summary |
|---|---|
| protected HttpContent create() Overrides org.
| |
| header | back to summary |
|---|---|
| public HttpTrailer. Add the HTTP mime header. | |
| headers | back to summary |
|---|---|
| public HttpTrailer. Set the mime trailers.
This method will overwrite any trailers provided via
| |