Class MemoryAttribute

    • Constructor Detail

      • MemoryAttribute

        public MemoryAttribute​(java.lang.String name)
      • MemoryAttribute

        public MemoryAttribute​(java.lang.String name,
                               java.lang.String value)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Description copied from interface: Attribute
        Returns the value of this HttpData.
        Specified by:
        getValue in interface Attribute
      • setValue

        public void setValue​(java.lang.String value)
                      throws java.io.IOException
        Description copied from interface: Attribute
        Sets the value of this HttpData.
        Specified by:
        setValue in interface Attribute
        Throws:
        java.io.IOException
      • addContent

        public void addContent​(ChannelBuffer buffer,
                               boolean last)
                        throws java.io.IOException
        Description copied from interface: HttpData
        Add the content from the ChannelBuffer
        Specified by:
        addContent in interface HttpData
        Overrides:
        addContent in class AbstractMemoryHttpData
        Parameters:
        buffer - must be not null except if last is set to False
        last - True of the buffer is the last one
        Throws:
        java.io.IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(Attribute o)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object