public abstract class AbstractHttpData extends io.netty.util.AbstractReferenceCounted implements HttpData
InterfaceHttpData.HttpDataType
Modifier and Type | Field and Description |
---|---|
protected Charset |
charset |
protected boolean |
completed |
protected long |
definedSize |
protected String |
name |
protected long |
size |
Modifier | Constructor and Description |
---|---|
protected |
AbstractHttpData(String name,
Charset charset,
long size) |
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
content() |
protected void |
deallocate() |
Charset |
getCharset()
Returns the Charset passed by the browser or null if not defined.
|
String |
getName()
Returns the name of this InterfaceHttpData.
|
boolean |
isCompleted() |
long |
length()
Returns the size in byte of the InterfaceHttpData
|
HttpData |
retain() |
HttpData |
retain(int increment) |
void |
setCharset(Charset charset)
Set the Charset passed by the browser if defined
|
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContent, copy, delete, duplicate, get, getByteBuf, getChunk, getFile, getString, getString, isInMemory, renameTo, setContent, setContent, setContent
getHttpDataType
compareTo
protected final String name
protected long definedSize
protected long size
protected Charset charset
protected boolean completed
public String getName()
InterfaceHttpData
getName
in interface InterfaceHttpData
public boolean isCompleted()
isCompleted
in interface HttpData
public Charset getCharset()
HttpData
getCharset
in interface HttpData
public void setCharset(Charset charset)
HttpData
setCharset
in interface HttpData
charset
- Charset to set - must be not nullpublic long length()
HttpData
public io.netty.buffer.ByteBuf content()
content
in interface io.netty.buffer.ByteBufHolder
protected void deallocate()
deallocate
in class io.netty.util.AbstractReferenceCounted
public HttpData retain()
Copyright © 2008–2013 The Netty Project. All rights reserved.