public class DefaultHttpContent extends DefaultHttpObject implements HttpContent
HttpContent implementation.| Constructor and Description |
|---|
DefaultHttpContent(io.netty.buffer.ByteBuf content)
Creates a new instance with the specified chunk content.
|
| Modifier and Type | Method and Description |
|---|---|
HttpContent |
copy() |
io.netty.buffer.ByteBuf |
data() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
HttpContent |
retain() |
HttpContent |
retain(int increment) |
String |
toString() |
getDecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDecoderResult, setDecoderResultpublic DefaultHttpContent(io.netty.buffer.ByteBuf content)
public io.netty.buffer.ByteBuf data()
data in interface io.netty.buffer.ByteBufHolderpublic HttpContent copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in interface HttpContentpublic int refCnt()
refCnt in interface io.netty.buffer.ReferenceCountedpublic HttpContent retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.buffer.ReferenceCountedretain in interface HttpContentpublic HttpContent retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.buffer.ReferenceCountedretain in interface HttpContentpublic boolean release()
release in interface io.netty.buffer.ReferenceCountedpublic boolean release(int decrement)
release in interface io.netty.buffer.ReferenceCountedCopyright © 2008-2013 The Netty Project. All Rights Reserved.