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
Nested ClassesModifier and TypeClassDescriptionstatic final classHttpTrailer message builder. -
Field Summary
Fields inherited from class org.glassfish.grizzly.http.HttpContent
content, httpHeader, isLast -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpBrokenContent.Builderbuilder(HttpHeader httpHeader) ReturnsHttpTrailerbuilder.static HttpBrokenContentcreate()static HttpBrokenContentcreate(HttpHeader httpHeader) org.glassfish.grizzly.BufferGet the HTTP message contentBuffer.ReturnsThrowable, which describes the error.final booleanisLast()Always true true for the trailer message.voidrecycle()protected voidreset()Reset the internal state.Methods inherited from class org.glassfish.grizzly.http.HttpContent
append, create, create, getHttpHeader, isBroken, isContent, isHeader, setContent, setLastMethods inherited from class org.glassfish.grizzly.http.HttpPacket
isHttp
-
Constructor Details
-
HttpBrokenContent
-
-
Method Details
-
create
-
create
-
builder
ReturnsHttpTrailerbuilder.- 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:
getContentin classHttpContent- Returns:
Buffer.
-
isLast
public final boolean isLast()Always true true for the trailer message.- Overrides:
isLastin classHttpContent- Returns:
- Always true true for the trailer message.
-
reset
protected void reset()Reset the internal state.- Overrides:
resetin classHttpContent
-
recycle
public void recycle()- Specified by:
recyclein interfaceorg.glassfish.grizzly.Cacheable- Overrides:
recyclein classHttpContent
-