org.jboss.netty.handler.codec.http2
Class DefaultHttpChunk

java.lang.Object
  extended by org.jboss.netty.handler.codec.http2.DefaultHttpChunk
All Implemented Interfaces:
HttpChunk

public class DefaultHttpChunk
extends Object
implements HttpChunk

The default HttpChunk implementation.

Version:
$Rev: 619 $, $Date: 2010-11-11 20:30:06 +0100 (jeu., 11 nov. 2010) $
Author:
The Netty Project, Trustin Lee

Field Summary
 
Fields inherited from interface org.jboss.netty.handler.codec.http2.HttpChunk
LAST_CHUNK
 
Constructor Summary
DefaultHttpChunk(org.jboss.netty.buffer.ChannelBuffer content)
          Creates a new instance with the specified chunk content.
 
Method Summary
 org.jboss.netty.buffer.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(org.jboss.netty.buffer.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
 

Constructor Detail

DefaultHttpChunk

public DefaultHttpChunk(org.jboss.netty.buffer.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

getContent

public org.jboss.netty.buffer.ChannelBuffer getContent()
Description copied from interface: HttpChunk
Returns the content of this chunk. If this is the 'end of content' marker, ChannelBuffers.EMPTY_BUFFER will be returned.

Specified by:
getContent in interface HttpChunk

setContent

public void setContent(org.jboss.netty.buffer.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


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.