public class MemoryAttribute extends AbstractMemoryHttpData implements Attribute
InterfaceHttpData.HttpDataType
isRenamed
charset, 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 other) |
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, setContent
getCharset, getName, isCompleted, length, setCharset
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
delete, get, getChannelBuffer, getCharset, getChunk, getFile, getString, getString, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContent
getName
public MemoryAttribute(String name)
public MemoryAttribute(String name, String value) throws IOException
IOException
public InterfaceHttpData.HttpDataType getHttpDataType()
getHttpDataType
in interface InterfaceHttpData
public String getValue()
Attribute
public void setValue(String value) throws IOException
Attribute
setValue
in interface Attribute
IOException
public void addContent(ChannelBuffer buffer, boolean last) throws IOException
HttpData
addContent
in interface HttpData
addContent
in class AbstractMemoryHttpData
buffer
- must be not null except if last is set to Falselast
- True of the buffer is the last oneIOException
public int compareTo(InterfaceHttpData other)
compareTo
in interface Comparable<InterfaceHttpData>
public int compareTo(Attribute o)
Copyright © 2008-2014 The Netty Project. All Rights Reserved.