
public abstract class AbstractHttpData extends Object implements HttpData
InterfaceHttpData.HttpDataType| Modifier and Type | Field and Description | 
|---|---|
| protected Charset | charset | 
| protected boolean | completed | 
| protected long | definedSize | 
| protected long | maxSize | 
| protected String | name | 
| protected long | size | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractHttpData(String name,
                Charset charset,
                long size) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkSize(long newSize)Check if the new size is not reaching the max limit allowed. | 
| 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 | 
| void | setCharset(Charset charset)Set the Charset passed by the browser if defined | 
| void | setMaxSize(long maxSize)Set the maxSize for this HttpData. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddContent, delete, get, getChannelBuffer, getChunk, getFile, getString, getString, isInMemory, renameTo, setContent, setContent, setContentgetHttpDataTypecompareToprotected final String name
protected long definedSize
protected long size
protected Charset charset
protected boolean completed
protected long maxSize
public void setMaxSize(long maxSize)
HttpDatasetMaxSize in interface HttpDatapublic void checkSize(long newSize)
               throws IOException
HttpDatacheckSize in interface HttpDataIOExceptionpublic String getName()
InterfaceHttpDatagetName in interface InterfaceHttpDatapublic boolean isCompleted()
isCompleted in interface HttpDatapublic Charset getCharset()
HttpDatagetCharset in interface HttpDatapublic void setCharset(Charset charset)
HttpDatasetCharset in interface HttpDatacharset - Charset to set - must be not nullCopyright © 2008-2014 The Netty Project. All Rights Reserved.