Package io.netty5.handler.codec.http
Class EmptyLastHttpContent
- java.lang.Object
-
- io.netty5.handler.codec.http.EmptyLastHttpContent
-
- All Implemented Interfaces:
io.netty5.buffer.api.Resource<EmptyLastHttpContent>,io.netty5.handler.codec.DecoderResultProvider,HttpContent<EmptyLastHttpContent>,HttpObject,LastHttpContent<EmptyLastHttpContent>,AutoCloseable
public final class EmptyLastHttpContent extends Object implements LastHttpContent<EmptyLastHttpContent>
-
-
Constructor Summary
Constructors Constructor Description EmptyLastHttpContent(io.netty5.buffer.api.BufferAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()io.netty5.handler.codec.DecoderResultdecoderResult()booleanequals(Object o)inthashCode()booleanisAccessible()io.netty5.buffer.api.Bufferpayload()Returns theBufferrepresenting the payload of the HTTP message.io.netty5.buffer.api.Send<EmptyLastHttpContent>send()voidsetDecoderResult(io.netty5.handler.codec.DecoderResult result)StringtoString()EmptyLastHttpContenttouch(Object hint)HttpHeaderstrailingHeaders()
-
-
-
Method Detail
-
payload
public io.netty5.buffer.api.Buffer payload()
Description copied from interface:HttpContentReturns theBufferrepresenting the payload of the HTTP message.- Specified by:
payloadin interfaceHttpContent<EmptyLastHttpContent>- Returns:
- The
Bufferrepresenting the payload of the HTTP message.
-
send
public io.netty5.buffer.api.Send<EmptyLastHttpContent> send()
- Specified by:
sendin interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
isAccessible
public boolean isAccessible()
- Specified by:
isAccessiblein interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
touch
public EmptyLastHttpContent touch(Object hint)
- Specified by:
touchin interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
trailingHeaders
public HttpHeaders trailingHeaders()
- Specified by:
trailingHeadersin interfaceLastHttpContent<EmptyLastHttpContent>
-
decoderResult
public io.netty5.handler.codec.DecoderResult decoderResult()
- Specified by:
decoderResultin interfaceio.netty5.handler.codec.DecoderResultProvider
-
setDecoderResult
public void setDecoderResult(io.netty5.handler.codec.DecoderResult result)
- Specified by:
setDecoderResultin interfaceio.netty5.handler.codec.DecoderResultProvider
-
-