String[] handlers = pipelineConfig.split(",");
for (int i = 0; i < handlers.length - 1; i++) {
String handler = handlers[i];
try {
String name = getName(handler.trim());
ChannelHandler instance = getInstance(handler);
if (instance != null) {
pipeline.addLast(name, instance);
Server.pipelines.put("Ssl" + name, instance);
}
} catch (Throwable e) {
Logger.error(" error adding " + handler, e);
}
}
// The last one is always the yalp handler
String handler = handlers[handlers.length - 1];
ChannelHandler instance = getInstance(handler);
if (instance != null) {
pipeline.addLast("handler", instance);
Server.pipelines.put("SslHandler", instance);
}