java.lang.Object
org.glassfish.grizzly.http.HttpPacket
org.glassfish.grizzly.http.HttpContent
org.glassfish.grizzly.http.HttpBrokenContent
- All Implemented Interfaces:
org.glassfish.grizzly.Appendable<HttpContent>
,org.glassfish.grizzly.Cacheable
HttpContent
message, which represents broken HTTP content. isLast()
is always returns true,
getContent()
always throws HttpBrokenContentException()
.- Author:
- Alexey Stashok
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
HttpTrailer message builder. -
Field Summary
Fields inherited from class org.glassfish.grizzly.http.HttpContent
content, httpHeader, isLast
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpBrokenContent.Builder
builder
(HttpHeader httpHeader) ReturnsHttpTrailer
builder.static HttpBrokenContent
create()
static HttpBrokenContent
create
(HttpHeader httpHeader) org.glassfish.grizzly.Buffer
Get the HTTP message contentBuffer
.ReturnsThrowable
, which describes the error.final boolean
isLast()
Always true true for the trailer message.void
recycle()
protected void
reset()
Reset the internal state.Methods inherited from class org.glassfish.grizzly.http.HttpContent
append, create, create, getHttpHeader, isBroken, isContent, isHeader, setContent, setLast
Methods inherited from class org.glassfish.grizzly.http.HttpPacket
isHttp
-
Constructor Details
-
HttpBrokenContent
-
-
Method Details
-
create
-
create
-
builder
ReturnsHttpTrailer
builder.- Returns:
HttpBrokenContent.Builder
.
-
getException
ReturnsThrowable
, which describes the error.- Returns:
Throwable
, which describes the error.
-
getContent
public org.glassfish.grizzly.Buffer getContent()Get the HTTP message contentBuffer
.- Overrides:
getContent
in classHttpContent
- Returns:
Buffer
.
-
isLast
public final boolean isLast()Always true true for the trailer message.- Overrides:
isLast
in classHttpContent
- Returns:
- Always true true for the trailer message.
-
reset
protected void reset()Reset the internal state.- Overrides:
reset
in classHttpContent
-
recycle
public void recycle()- Specified by:
recycle
in interfaceorg.glassfish.grizzly.Cacheable
- Overrides:
recycle
in classHttpContent
-