public abstract class AbstractHttpConnection extends Object implements HttpConnection
| 限定符和类型 | 字段和说明 |
|---|---|
private org.jboss.netty.channel.ChannelHandlerContext |
ctx |
private Executor |
executor |
private NettyHttpRequest |
nettyHttpRequest |
| 构造器和说明 |
|---|
AbstractHttpConnection(org.jboss.netty.channel.ChannelHandlerContext ctx,
NettyHttpRequest nettyHttpRequest,
Executor executor) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
closeChannel() |
Map<String,Object> |
data()
Arbitrary data that can be stored for the lifetime of the connection.
|
Object |
data(String key)
Retrieve data value by key.
|
Set<String> |
dataKeys()
List data keys.
|
void |
execute(Runnable command) |
Executor |
handlerExecutor() |
NettyHttpRequest |
httpRequest() |
protected void |
putData(String key,
Object value) |
protected org.jboss.netty.channel.ChannelFuture |
writeMessage(Object message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosedataprivate final Executor executor
private final NettyHttpRequest nettyHttpRequest
private final org.jboss.netty.channel.ChannelHandlerContext ctx
public AbstractHttpConnection(org.jboss.netty.channel.ChannelHandlerContext ctx,
NettyHttpRequest nettyHttpRequest,
Executor executor)
protected org.jboss.netty.channel.ChannelFuture writeMessage(Object message)
protected void closeChannel()
public NettyHttpRequest httpRequest()
httpRequest 在接口中 HttpConnectionpublic Map<String,Object> data()
DataHolderdata 在接口中 DataHolderpublic Object data(String key)
DataHolderdata 在接口中 DataHolderDataHolder.data()public Set<String> dataKeys()
DataHolderdataKeys 在接口中 DataHolderDataHolder.data()public Executor handlerExecutor()
handlerExecutor 在接口中 HttpConnectionCopyright © 2014. All rights reserved.