public class DefaultLastHttpContent extends DefaultHttpContent implements LastHttpContent
LastHttpContent
implementation.EMPTY_LAST_CONTENT
构造器和说明 |
---|
DefaultLastHttpContent() |
DefaultLastHttpContent(ByteBuf content) |
DefaultLastHttpContent(ByteBuf content,
boolean validateHeaders) |
限定符和类型 | 方法和说明 |
---|---|
LastHttpContent |
copy()
Create a deep copy of this
ByteBufHolder . |
LastHttpContent |
duplicate()
Duplicate the
ByteBufHolder . |
LastHttpContent |
retain()
Increases the reference count by
1 . |
LastHttpContent |
retain(int increment)
Increases the reference count by the specified
increment . |
java.lang.String |
toString() |
HttpHeaders |
trailingHeaders() |
content, refCnt, release, release
getDecoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDecoderResult, setDecoderResult
content
refCnt, release, release
public DefaultLastHttpContent()
public DefaultLastHttpContent(ByteBuf content)
public DefaultLastHttpContent(ByteBuf content, boolean validateHeaders)
public LastHttpContent copy()
ByteBufHolder
ByteBufHolder
.copy
在接口中 ByteBufHolder
copy
在接口中 HttpContent
copy
在接口中 LastHttpContent
copy
在类中 DefaultHttpContent
public LastHttpContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
在接口中 ByteBufHolder
duplicate
在接口中 HttpContent
duplicate
在类中 DefaultHttpContent
public LastHttpContent retain(int increment)
ReferenceCounted
increment
.retain
在接口中 ByteBufHolder
retain
在接口中 HttpContent
retain
在接口中 LastHttpContent
retain
在接口中 ReferenceCounted
retain
在类中 DefaultHttpContent
public LastHttpContent retain()
ReferenceCounted
1
.retain
在接口中 ByteBufHolder
retain
在接口中 HttpContent
retain
在接口中 LastHttpContent
retain
在接口中 ReferenceCounted
retain
在类中 DefaultHttpContent
public HttpHeaders trailingHeaders()
trailingHeaders
在接口中 LastHttpContent
public java.lang.String toString()
toString
在类中 DefaultHttpContent