public class DefaultCachedHttpResponse extends Object implements CachedHttpResponse
| Constructor and Description |
|---|
DefaultCachedHttpResponse(org.jboss.netty.buffer.ChannelBuffer channelBuffer,
org.jboss.netty.channel.ChannelFutureListener channelFutureListener)
Creates a new cached response.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.buffer.ChannelBuffer |
getChannelBuffer()
Accessor for the raw data for the response.
|
org.jboss.netty.channel.ChannelFutureListener |
getChannelFutureListener()
Accessor for the listener for once the response is written.
|
public DefaultCachedHttpResponse(org.jboss.netty.buffer.ChannelBuffer channelBuffer,
org.jboss.netty.channel.ChannelFutureListener channelFutureListener)
channelBuffer - The channel buffer with data to write.channelFutureListener - The class for listening to write events
that takes appropriate actions such as closing the connection.public org.jboss.netty.buffer.ChannelBuffer getChannelBuffer()
CachedHttpResponsegetChannelBuffer in interface CachedHttpResponsepublic org.jboss.netty.channel.ChannelFutureListener getChannelFutureListener()
CachedHttpResponsegetChannelFutureListener in interface CachedHttpResponseCopyright © 2009-2013 LittleShoot. All Rights Reserved.