gpt4 book ai didi

com.netflix.zuul.netty.filter.ZuulFilterChainRunner.handleException()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 22:23:31 26 4
gpt4 key购买 nike

本文整理了Java中com.netflix.zuul.netty.filter.ZuulFilterChainRunner.handleException()方法的一些代码示例,展示了ZuulFilterChainRunner.handleException()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZuulFilterChainRunner.handleException()方法的具体详情如下:
包路径:com.netflix.zuul.netty.filter.ZuulFilterChainRunner
类名称:ZuulFilterChainRunner
方法名:handleException

ZuulFilterChainRunner.handleException介绍

暂无

代码示例

代码示例来源:origin: Netflix/zuul

private final void runFilters(final T mesg, final AtomicInteger runningFilterIdx) {
  T inMesg = mesg;
  String filterName = "-";
  try {
    Preconditions.checkNotNull(mesg, "Input message");
    int i = runningFilterIdx.get();
    while (i < filters.length) {
      final ZuulFilter<T, T> filter = filters[i];
      filterName = filter.filterName();
      final T outMesg = filter(filter, inMesg);
      if (outMesg == null) {
        return; //either async filter or waiting for the message body to be buffered
      }
      inMesg = outMesg;
      i = runningFilterIdx.incrementAndGet();
    }
    //Filter chain has reached its end, pass result to the next stage
    invokeNextStage(inMesg);
  }
  catch (Exception ex) {
    handleException(inMesg, filterName, ex);
  }
}

代码示例来源:origin: Netflix/zuul

private final void runFilters(final T mesg, final AtomicInteger runningFilterIdx) {
  T inMesg = mesg;
  String filterName = "-";
  try {
    Preconditions.checkNotNull(mesg, "Input message");
    int i = runningFilterIdx.get();
    while (i < filters.length) {
      final ZuulFilter<T, T> filter = filters[i];
      filterName = filter.filterName();
      final T outMesg = filter(filter, inMesg);
      if (outMesg == null) {
        return; //either async filter or waiting for the message body to be buffered
      }
      inMesg = outMesg;
      i = runningFilterIdx.incrementAndGet();
    }
    //Filter chain has reached its end, pass result to the next stage
    invokeNextStage(inMesg);
  }
  catch (Exception ex) {
    handleException(inMesg, filterName, ex);
  }
}

代码示例来源:origin: Netflix/zuul

handleException(inMesg, filterName, ex);

代码示例来源:origin: Netflix/zuul

handleException(inMesg, filterName, ex);

代码示例来源:origin: com.netflix.zuul/zuul-core

private final void runFilters(final T mesg, final AtomicInteger runningFilterIdx) {
  T inMesg = mesg;
  String filterName = "-";
  try {
    Preconditions.checkNotNull(mesg, "Input message");
    int i = runningFilterIdx.get();
    while (i < filters.length) {
      final ZuulFilter<T, T> filter = filters[i];
      filterName = filter.filterName();
      final T outMesg = filter(filter, inMesg);
      if (outMesg == null) {
        return; //either async filter or waiting for the message body to be buffered
      }
      inMesg = outMesg;
      i = runningFilterIdx.incrementAndGet();
    }
    //Filter chain has reached its end, pass result to the next stage
    invokeNextStage(inMesg);
  }
  catch (Exception ex) {
    handleException(inMesg, filterName, ex);
  }
}

代码示例来源:origin: com.netflix.zuul/zuul-core

handleException(inMesg, filterName, ex);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com