Module io.inverno.mod.http.base
Class FlatLastHttpContent
java.lang.Object
io.netty.buffer.DefaultByteBufHolder
io.inverno.mod.http.base.internal.netty.FlatLastHttpContent
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder,io.netty.handler.codec.DecoderResultProvider,io.netty.handler.codec.http.HttpContent,io.netty.handler.codec.http.HttpObject,io.netty.handler.codec.http.LastHttpContent,io.netty.util.ReferenceCounted
public class FlatLastHttpContent
extends io.netty.buffer.DefaultByteBufHolder
implements io.netty.handler.codec.http.LastHttpContent
Optimized LastHttpContent implementation.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT -
Constructor Summary
ConstructorsConstructorDescriptionFlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders) Creates a flat last HTTP content.FlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders, io.netty.handler.codec.DecoderResult result) Creates a flat HTTP content. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.codec.http.LastHttpContentcopy()io.netty.handler.codec.DecoderResultio.netty.handler.codec.http.LastHttpContentio.netty.handler.codec.DecoderResultDeprecated.io.netty.handler.codec.http.LastHttpContentreplace(io.netty.buffer.ByteBuf content) io.netty.handler.codec.http.LastHttpContentretain()io.netty.handler.codec.http.LastHttpContentretain(int increment) io.netty.handler.codec.http.LastHttpContentvoidsetDecoderResult(io.netty.handler.codec.DecoderResult result) touch()io.netty.handler.codec.http.HttpHeadersMethods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, equals, hashCode, refCnt, release, release, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.buffer.ByteBufHolder
contentMethods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
Constructor Details
-
FlatLastHttpContent
public FlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders) Creates a flat last HTTP content.
- Parameters:
content- the contenttrailingHeaders- the trailing HTTP headers
-
FlatLastHttpContent
public FlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders, io.netty.handler.codec.DecoderResult result) Creates a flat HTTP content.
- Parameters:
content- the contenttrailingHeaders- the trailing HTTP headersresult- the decoder result
-
-
Method Details
-
trailingHeaders
public io.netty.handler.codec.http.HttpHeaders trailingHeaders()- Specified by:
trailingHeadersin interfaceio.netty.handler.codec.http.LastHttpContent
-
copy
public io.netty.handler.codec.http.LastHttpContent copy()- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder- Specified by:
copyin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
copyin interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
copyin classio.netty.buffer.DefaultByteBufHolder
-
duplicate
public io.netty.handler.codec.http.LastHttpContent duplicate()- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
duplicatein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
duplicatein interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
duplicatein classio.netty.buffer.DefaultByteBufHolder
-
retainedDuplicate
public io.netty.handler.codec.http.LastHttpContent retainedDuplicate()- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
retainedDuplicatein classio.netty.buffer.DefaultByteBufHolder
-
replace
public io.netty.handler.codec.http.LastHttpContent replace(io.netty.buffer.ByteBuf content) - Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Specified by:
replacein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
replacein interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
replacein classio.netty.buffer.DefaultByteBufHolder
-
retain
public io.netty.handler.codec.http.LastHttpContent retain(int increment) - Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classio.netty.buffer.DefaultByteBufHolder
-
retain
public io.netty.handler.codec.http.LastHttpContent retain()- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classio.netty.buffer.DefaultByteBufHolder
-
decoderResult
public io.netty.handler.codec.DecoderResult decoderResult()- Specified by:
decoderResultin interfaceio.netty.handler.codec.DecoderResultProvider
-
getDecoderResult
Deprecated.- Specified by:
getDecoderResultin interfaceio.netty.handler.codec.http.HttpObject
-
setDecoderResult
public void setDecoderResult(io.netty.handler.codec.DecoderResult result) - Specified by:
setDecoderResultin interfaceio.netty.handler.codec.DecoderResultProvider
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
touchin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classio.netty.buffer.DefaultByteBufHolder
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
touchin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classio.netty.buffer.DefaultByteBufHolder
-