public class SpdyHttpResponseStreamIdHandler extends SimpleChannelHandler
SimpleChannelHandler
that takes care of adding the right streamId to the
HttpResponse
if one is not present. This makes it possible to just re-use plan handlers current used
for HTTP.ChannelHandler.Sharable
构造器和说明 |
---|
SpdyHttpResponseStreamIdHandler() |
限定符和类型 | 方法和说明 |
---|---|
void |
messageReceived(ChannelHandlerContext ctx,
MessageEvent e)
Invoked when a message object (e.g:
ChannelBuffer ) was received
from a remote peer. |
void |
writeRequested(ChannelHandlerContext ctx,
MessageEvent e)
Invoked when
Channel.write(Object) is called. |
bindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws java.lang.Exception
SimpleChannelHandler
ChannelBuffer
) was received
from a remote peer.messageReceived
在类中 SimpleChannelHandler
java.lang.Exception
public void writeRequested(ChannelHandlerContext ctx, MessageEvent e) throws java.lang.Exception
SimpleChannelHandler
Channel.write(Object)
is called.writeRequested
在类中 SimpleChannelHandler
java.lang.Exception