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 . |
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, getHttpHeader, isBroken, isContent, isHeader, setContent, setLast
isHttp
protected 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 Throwable getException()
Throwable
, which describes the error.Throwable
, which describes the error.public Buffer getContent()
Buffer
.getContent
in class HttpContent
Buffer
.public final boolean isLast()
isLast
in class HttpContent
protected void reset()
reset
in class HttpContent
public void recycle()
recycle
in interface Cacheable
recycle
in class HttpContent
Copyright © 2014 Oracle Corporation. All rights reserved.