Class DefaultHttpChunk

  • All Implemented Interfaces:
    HttpChunk

    public class DefaultHttpChunk
    extends java.lang.Object
    implements HttpChunk
    The default HttpChunk implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultHttpChunk​(ChannelBuffer content)
      Creates a new instance with the specified chunk content.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChannelBuffer getContent()
      Returns the content of this chunk.
      boolean isLast()
      Returns true if and only if this chunk is the 'end of content' marker.
      void setContent​(ChannelBuffer content)
      Sets the content of this chunk.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • last

        private boolean last
    • Constructor Detail

      • DefaultHttpChunk

        public DefaultHttpChunk​(ChannelBuffer content)
        Creates a new instance with the specified chunk content. If an empty buffer is specified, this chunk becomes the 'end of content' marker.
    • Method Detail

      • setContent

        public void setContent​(ChannelBuffer content)
        Description copied from interface: HttpChunk
        Sets the content of this chunk. If an empty buffer is specified, this chunk becomes the 'end of content' marker.
        Specified by:
        setContent in interface HttpChunk
      • isLast

        public boolean isLast()
        Description copied from interface: HttpChunk
        Returns true if and only if this chunk is the 'end of content' marker.
        Specified by:
        isLast in interface HttpChunk