Package org.glassfish.grizzly.http
Class HttpBrokenContent
- 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
public class HttpBrokenContent extends HttpContent
HttpContentmessage, which represents broken HTTP content.isLast()is always returns true,getContent()always throwsHttpBrokenContentException().- Author:
- Alexey Stashok
- See Also:
HttpContent.isBroken(org.glassfish.grizzly.http.HttpContent)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpBrokenContent.BuilderHttpTrailer message builder.
-
Field Summary
-
Fields inherited from class org.glassfish.grizzly.http.HttpContent
content, httpHeader, isLast
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpBrokenContent(HttpHeader httpHeader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpBrokenContent.Builderbuilder(HttpHeader httpHeader)ReturnsHttpTrailerbuilder.static HttpBrokenContentcreate()static HttpBrokenContentcreate(HttpHeader httpHeader)org.glassfish.grizzly.BuffergetContent()Get the HTTP message contentBuffer.ThrowablegetException()ReturnsThrowable, which describes the error.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, setLast
-
Methods inherited from class org.glassfish.grizzly.http.HttpPacket
isHttp
-
-
-
-
Constructor Detail
-
HttpBrokenContent
protected HttpBrokenContent(HttpHeader httpHeader)
-
-
Method Detail
-
create
public static HttpBrokenContent create()
-
create
public static HttpBrokenContent create(HttpHeader httpHeader)
-
builder
public static HttpBrokenContent.Builder builder(HttpHeader httpHeader)
ReturnsHttpTrailerbuilder.- Returns:
HttpBrokenContent.Builder.
-
getException
public Throwable 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
-
-