@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }
@Override public NextAction handleRead(final FilterChainContext ctx) throws IOException { // If this method is called as part of natural PU filterchain processing - // just pass process to the next filter if (!isFilterChainRead(ctx)) { return ctx.getInvokeAction(); } // if this is filterchain read - delegate read to the underlying filterchain final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; final ReadResult readResult = suspendedParentContext.read(); ctx.setMessage(readResult.getMessage()); ctx.setAddressHolder(readResult.getSrcAddressHolder()); readResult.recycle(); return ctx.getInvokeAction(); }
@Override public void exceptionOccurred(final FilterChainContext ctx, final Throwable error) { // if downstream event - pass it to the puFilter if (isDownstream(ctx)) { final FilterChainContext suspendedParentContext = puFilter.suspendedContextAttribute.get(ctx); assert suspendedParentContext != null; suspendedParentContext.fail(error); } }