コード例 #1
0
 public void removeConsumer(NettyHttpConsumer consumer) {
   String path = pathAsKey(consumer.getConfiguration().getPath());
   ContextPathMatcher matcher =
       new DefaultContextPathMatcher(path, consumer.getConfiguration().isMatchOnUriPrefix());
   consumers.remove(matcher);
 }
コード例 #2
0
 public void addConsumer(NettyHttpConsumer consumer) {
   String path = pathAsKey(consumer.getConfiguration().getPath());
   ContextPathMatcher matcher =
       new DefaultContextPathMatcher(path, consumer.getConfiguration().isMatchOnUriPrefix());
   consumers.put(matcher, new HttpServerChannelHandler(consumer));
 }