- java.lang.Object
-
- io.netty5.handler.codec.http.EmptyLastHttpContent
-
- All Implemented Interfaces:
io.netty5.handler.codec.DecoderResultProvider
,HttpContent<EmptyLastHttpContent>
,HttpObject
,LastHttpContent<EmptyLastHttpContent>
,io.netty5.util.Resource<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()
EmptyLastHttpContent
copy()
Create a copy of this HTTP content instance, and return it.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.util.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.
-
copy
public EmptyLastHttpContent copy()
Description copied from interface:HttpContent
Create a copy of this HTTP content instance, and return it.- Specified by:
copy
in interfaceHttpContent<EmptyLastHttpContent>
- Returns:
- A copy of this HTTP content object.
-
send
public io.netty5.util.Send<EmptyLastHttpContent> send()
- Specified by:
send
in interfaceio.netty5.util.Resource<EmptyLastHttpContent>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceio.netty5.util.Resource<EmptyLastHttpContent>
-
isAccessible
public boolean isAccessible()
- Specified by:
isAccessible
in interfaceio.netty5.util.Resource<EmptyLastHttpContent>
-
touch
public EmptyLastHttpContent touch(Object hint)
- Specified by:
touch
in interfaceio.netty5.util.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
-
-