public class MemoryAttribute extends AbstractMemoryHttpData implements Attribute
InterfaceHttpData.HttpDataTypeisRenamedcharset, completed, definedSize, name, size| Constructor and Description |
|---|
MemoryAttribute(String name) |
MemoryAttribute(String name,
String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(ChannelBuffer buffer,
boolean last)
Add the content from the ChannelBuffer
|
int |
compareTo(Attribute o) |
int |
compareTo(InterfaceHttpData data) |
boolean |
equals(Object o) |
InterfaceHttpData.HttpDataType |
getHttpDataType() |
String |
getValue()
Returns the value of this HttpData.
|
int |
hashCode() |
void |
setValue(String value)
Sets the value of this HttpData.
|
String |
toString() |
delete, get, getChannelBuffer, getChunk, getFile, getString, getString, isInMemory, renameTo, setContent, setContent, setContentgetCharset, getName, isCompleted, length, setCharsetclone, finalize, getClass, notify, notifyAll, wait, wait, waitdelete, get, getChannelBuffer, getCharset, getChunk, getFile, getString, getString, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContentgetNamepublic MemoryAttribute(String name)
public MemoryAttribute(String name, String value) throws IOException
name - value - NullPointerExceptionIllegalArgumentExceptionIOExceptionpublic InterfaceHttpData.HttpDataType getHttpDataType()
getHttpDataType in interface InterfaceHttpDatapublic String getValue()
Attributepublic void setValue(String value) throws IOException
AttributesetValue in interface AttributeIOExceptionpublic void addContent(ChannelBuffer buffer, boolean last) throws IOException
HttpDataaddContent in interface HttpDataaddContent in class AbstractMemoryHttpDatabuffer - must be not null except if last is set to Falselast - True of the buffer is the last oneIOExceptionpublic int compareTo(InterfaceHttpData data)
compareTo in interface Comparable<InterfaceHttpData>public int compareTo(Attribute o)
Copyright © 2008-2012 The Netty Project. All Rights Reserved.