public class HttpBrokenContent extends HttpContent
HttpContent message, which represents broken HTTP content.
isLast() is always returns true,
getContent() always throws HttpBrokenContentException().HttpContent.isBroken(org.glassfish.grizzly.http.HttpContent)| Modifier and Type | Class and Description |
|---|---|
static class |
HttpBrokenContent.Builder
HttpTrailer message builder.
|
content, httpHeader, isLast| Modifier | Constructor and Description |
|---|---|
protected |
HttpBrokenContent(HttpHeader httpHeader) |
| Modifier and Type | Method and Description |
|---|---|
static HttpBrokenContent.Builder |
builder(HttpHeader httpHeader)
Returns
HttpTrailer builder. |
static HttpBrokenContent |
create() |
static HttpBrokenContent |
create(HttpHeader httpHeader) |
Buffer |
getContent()
Get the HTTP message content
Buffer. |
java.lang.Throwable |
getException()
Returns
Throwable, which describes the error. |
boolean |
isLast()
Always true true for the trailer message.
|
void |
recycle() |
protected void |
reset()
Reset the internal state.
|
append, create, create, getHttpHeader, isBroken, isContent, isHeader, setContent, setLastisHttpprotected HttpBrokenContent(HttpHeader httpHeader)
public static HttpBrokenContent create()
public static HttpBrokenContent create(HttpHeader httpHeader)
public static HttpBrokenContent.Builder builder(HttpHeader httpHeader)
HttpTrailer builder.HttpBrokenContent.Builder.public java.lang.Throwable getException()
Throwable, which describes the error.Throwable, which describes the error.public Buffer getContent()
Buffer.getContent in class HttpContentBuffer.public final boolean isLast()
isLast in class HttpContentprotected void reset()
reset in class HttpContentpublic void recycle()
recycle in interface Cacheablerecycle in class HttpContentCopyright © 2018 Oracle Corporation. All Rights Reserved.