@Override protected void postProcessReplyProducer(AbstractMessageProducingHandler handler) { super.postProcessReplyProducer(handler); if (this.headers != null) { handler.setNotPropagatedHeaders(this.headers); } }
/** * Set header patterns ("xxx*", "*xxx", "*xxx*" or "xxx*yyy") * that will NOT be copied from the inbound message. * At least one pattern as "*" means do not copy headers at all. * @param headerPatterns the headers to not propagate from the inbound message. * @return the endpoint spec. * @see AbstractMessageProducingHandler#setNotPropagatedHeaders(String...) */ public S notPropagatedHeaders(String... headerPatterns) { assertHandler(); if (this.handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) this.handler).setNotPropagatedHeaders(headerPatterns); } else { this.logger.warn("'headerPatterns' can be applied only for AbstractMessageProducingHandler"); } return _this(); }
@Override protected void postProcessReplyProducer(AbstractMessageProducingHandler handler) { super.postProcessReplyProducer(handler); if (this.headers != null) { handler.setNotPropagatedHeaders(this.headers); } }
/** * Set header patterns ("xxx*", "*xxx", "*xxx*" or "xxx*yyy") * that will NOT be copied from the inbound message. * At least one pattern as "*" means do not copy headers at all. * @param headerPatterns the headers to not propagate from the inbound message. * @return the endpoint spec. * @see AbstractMessageProducingHandler#setNotPropagatedHeaders(String...) */ public S notPropagatedHeaders(String... headerPatterns) { assertHandler(); if (this.handler instanceof AbstractMessageProducingHandler) { ((AbstractMessageProducingHandler) this.handler).setNotPropagatedHeaders(headerPatterns); } else { this.logger.warn("'headerPatterns' can be applied only for AbstractMessageProducingHandler"); } return _this(); }