public class DefaultLastHttpContent extends DefaultHttpContent implements LastHttpContent
LastHttpContent
implementation.EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultLastHttpContent() |
DefaultLastHttpContent(ByteBuf content) |
DefaultLastHttpContent(ByteBuf content,
boolean validateHeaders) |
Modifier and Type | Method and Description |
---|---|
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
in interface ByteBufHolder
copy
in interface HttpContent
copy
in interface LastHttpContent
copy
in class DefaultHttpContent
public LastHttpContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface HttpContent
duplicate
in class DefaultHttpContent
public LastHttpContent retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
retain
in class DefaultHttpContent
public LastHttpContent retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
retain
in class DefaultHttpContent
public HttpHeaders trailingHeaders()
trailingHeaders
in interface LastHttpContent
public java.lang.String toString()
toString
in class DefaultHttpContent
Copyright © 2008–2018 The Netty Project. All rights reserved.