org.webbitserver.netty
Class AbstractHttpConnection
java.lang.Object
org.webbitserver.netty.AbstractHttpConnection
- All Implemented Interfaces:
- Executor, DataHolder, HttpConnection
- Direct Known Subclasses:
- NettyEventSourceConnection, NettyWebSocketConnection
public abstract class AbstractHttpConnection
- extends Object
- implements HttpConnection
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHttpConnection
public AbstractHttpConnection(org.jboss.netty.channel.ChannelHandlerContext ctx,
NettyHttpRequest nettyHttpRequest,
Executor executor)
writeMessage
protected org.jboss.netty.channel.ChannelFuture writeMessage(Object message)
closeChannel
protected void closeChannel()
putData
protected void putData(String key,
Object value)
httpRequest
public NettyHttpRequest httpRequest()
- Specified by:
httpRequest in interface HttpConnection
data
public Map<String,Object> data()
- Description copied from interface:
DataHolder
- Arbitrary data that can be stored for the lifetime of the connection.
- Specified by:
data in interface DataHolder
data
public Object data(String key)
- Description copied from interface:
DataHolder
- Retrieve data value by key.
- Specified by:
data in interface DataHolder
- See Also:
DataHolder.data()
dataKeys
public Set<String> dataKeys()
- Description copied from interface:
DataHolder
- List data keys.
- Specified by:
dataKeys in interface DataHolder
- See Also:
DataHolder.data()
handlerExecutor
public Executor handlerExecutor()
- Specified by:
handlerExecutor in interface HttpConnection
execute
public void execute(Runnable command)
- Specified by:
execute in interface Executor
Copyright © 2013. All Rights Reserved.