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()
CachedHttpResponse
getChannelBuffer
in interface CachedHttpResponse
public org.jboss.netty.channel.ChannelFutureListener getChannelFutureListener()
CachedHttpResponse
getChannelFutureListener
in interface CachedHttpResponse
Copyright © 2009–2013 LittleShoot. All rights reserved.