@ChannelHandler.Sharable
public class NettyHttpServerHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
implements org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
NettyHttpServerHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext,
io.netty.handler.codec.http.FullHttpRequest fullHttpRequest) |
MessageRingBufferDispatcher |
getMessageDispatcher() |
java.util.Map |
getParams(io.netty.handler.codec.http.FullHttpRequest fullHttpRequest) |
java.lang.String |
getTransactionId(java.lang.String url) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setMessageDispatcher(MessageRingBufferDispatcher messageDispatcher) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic MessageRingBufferDispatcher getMessageDispatcher()
public void setMessageDispatcher(MessageRingBufferDispatcher messageDispatcher)
protected void channelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext,
io.netty.handler.codec.http.FullHttpRequest fullHttpRequest)
throws java.lang.Exception
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>java.lang.Exceptionpublic java.lang.String getTransactionId(java.lang.String url)
public java.util.Map getParams(io.netty.handler.codec.http.FullHttpRequest fullHttpRequest)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException