if (httpEnabled)
{
handlers.put("http-decoder", new HttpRequestDecoder());
handlers.put("http-aggregator", new HttpChunkAggregator(Integer.MAX_VALUE));
handlers.put("http-encoder", new HttpResponseEncoder());
httpHandler = new HttpAcceptorHandler(httpKeepAliveRunnable, httpResponseTime);
handlers.put("http-handler", httpHandler);
}
if (protocol == ProtocolType.CORE)
{
// Core protocol uses its own optimised decoder
handlers.put("hornetq-decoder", new HornetQFrameDecoder2());
}
else if (protocol == ProtocolType.STOMP_WS)
{
handlers.put("http-decoder", new HttpRequestDecoder());
handlers.put("http-aggregator", new HttpChunkAggregator(65536));
handlers.put("http-encoder", new HttpResponseEncoder());
handlers.put("hornetq-decoder", new HornetQFrameDecoder(decoder));
handlers.put("websocket-handler", new WebSocketServerHandler());
}
else if (protocol == ProtocolType.STOMP)