- 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 void
close()
io.netty5.handler.codec.DecoderResult
decoderResult()
boolean
equals(Object o)
int
hashCode()
boolean
isAccessible()
io.netty5.buffer.api.Buffer
payload()
Returns theBuffer
representing the payload of the HTTP message.io.netty5.buffer.api.Send<EmptyLastHttpContent>
send()
void
setDecoderResult(io.netty5.handler.codec.DecoderResult result)
String
toString()
EmptyLastHttpContent
touch(Object hint)
HttpHeaders
trailingHeaders()
-
-
-
Method Detail
-
payload
public io.netty5.buffer.api.Buffer payload()
Description copied from interface:HttpContent
Returns theBuffer
representing the payload of the HTTP message.- Specified by:
payload
in interfaceHttpContent<EmptyLastHttpContent>
- Returns:
- The
Buffer
representing the payload of the HTTP message.
-
send
public io.netty5.buffer.api.Send<EmptyLastHttpContent> send()
- Specified by:
send
in interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
isAccessible
public boolean isAccessible()
- Specified by:
isAccessible
in interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
touch
public EmptyLastHttpContent touch(Object hint)
- Specified by:
touch
in interfaceio.netty5.buffer.api.Resource<EmptyLastHttpContent>
-
trailingHeaders
public HttpHeaders trailingHeaders()
- Specified by:
trailingHeaders
in interfaceLastHttpContent<EmptyLastHttpContent>
-
decoderResult
public io.netty5.handler.codec.DecoderResult decoderResult()
- Specified by:
decoderResult
in interfaceio.netty5.handler.codec.DecoderResultProvider
-
setDecoderResult
public void setDecoderResult(io.netty5.handler.codec.DecoderResult result)
- Specified by:
setDecoderResult
in interfaceio.netty5.handler.codec.DecoderResultProvider
-
-