mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removePluggableHandlers
This commit is contained in:
@@ -53,7 +53,7 @@ public class XmlRpcServerImpl extends SimpleChannelUpstreamHandler implements Xm
|
||||
|
||||
@Override
|
||||
public void consume(ChannelPipeline pipeline) {
|
||||
pipeline.addLast("xmlRpc", this);
|
||||
pipeline.addLast("pluggable_xmlRpc", this);
|
||||
}
|
||||
|
||||
public int getPortNumber() {
|
||||
|
||||
@@ -116,6 +116,14 @@ public class WebServer {
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(createShutdownTask()));
|
||||
}
|
||||
|
||||
public static void removePluggableHandlers(ChannelPipeline pipeline) {
|
||||
for (String name : pipeline.getNames()) {
|
||||
if (name.startsWith("pluggable_")) {
|
||||
pipeline.remove(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class ChannelPipelineFactoryImpl implements ChannelPipelineFactory {
|
||||
private final Computable<Consumer<ChannelPipeline>[]> pipelineConsumers;
|
||||
private final DefaultHandler defaultHandler;
|
||||
|
||||
Reference in New Issue
Block a user