/** * Add a single header specification where the value is obtained by calling the * {@link HeaderValueMessageProcessor}. * @param headerName the header name. * @param headerValueMessageProcessor the message processor. * @param <V> the value type. * @return the header enricher spec. */ public <V> HeaderEnricherSpec header(String headerName, HeaderValueMessageProcessor<V> headerValueMessageProcessor) { Assert.hasText(headerName, "'headerName' must not be empty"); this.headerToAdd.put(headerName, headerValueMessageProcessor); return _this(); }
/** * Determine the default action to take when setting individual header specifications * without an explicit 'overwrite' argument. * @param defaultOverwrite the defaultOverwrite. * @return the header enricher spec. * @see HeaderEnricher#setDefaultOverwrite(boolean) */ public HeaderEnricherSpec defaultOverwrite(boolean defaultOverwrite) { this.headerEnricher.setDefaultOverwrite(defaultOverwrite); return _this(); }
/** * @param shouldSkipNulls the shouldSkipNulls. * @return the header enricher spec. * @see HeaderEnricher#setShouldSkipNulls(boolean) */ public HeaderEnricherSpec shouldSkipNulls(boolean shouldSkipNulls) { this.headerEnricher.setShouldSkipNulls(shouldSkipNulls); return _this(); }
/** * Configure an optional custom {@link MessageProcessor} for the enricher. The * processor must return a {@link Map} of header names and values. They will be added * to the inbound message headers before evaluating the individual configured header * specifications. * @param messageProcessor the messageProcessor. * @return the header enricher spec. * @see HeaderEnricher#setMessageProcessor(MessageProcessor) */ public HeaderEnricherSpec messageProcessor(MessageProcessor<?> messageProcessor) { this.headerEnricher.setMessageProcessor(messageProcessor); return _this(); }
/** * @param shouldSkipNulls the shouldSkipNulls. * @return the header enricher spec. * @see HeaderEnricher#setShouldSkipNulls(boolean) */ public HeaderEnricherSpec shouldSkipNulls(boolean shouldSkipNulls) { this.shouldSkipNulls = shouldSkipNulls; return _this(); }
/** * @param shouldSkipNulls the shouldSkipNulls. * @return the header enricher spec. * @see HeaderEnricher#setShouldSkipNulls(boolean) */ public HeaderEnricherSpec shouldSkipNulls(boolean shouldSkipNulls) { this.shouldSkipNulls = shouldSkipNulls; return _this(); }
/** * Determine the default action to take when setting individual header specifications * without an explicit 'overwrite' argument. * @param defaultOverwrite the defaultOverwrite. * @return the header enricher spec. * @see HeaderEnricher#setDefaultOverwrite(boolean) */ public HeaderEnricherSpec defaultOverwrite(boolean defaultOverwrite) { this.defaultOverwrite = defaultOverwrite; return _this(); }
/** * Determine the default action to take when setting individual header specifications * without an explicit 'overwrite' argument. * @param defaultOverwrite the defaultOverwrite. * @return the header enricher spec. * @see HeaderEnricher#setDefaultOverwrite(boolean) */ public HeaderEnricherSpec defaultOverwrite(boolean defaultOverwrite) { this.defaultOverwrite = defaultOverwrite; return _this(); }
/** * Configure an optional custom {@link MessageProcessor} for the enricher. The * processor must return a {@link Map} of header names and values. They will be added * to the inbound message headers before evaluating the individual configured header * specifications. * @param messageProcessor the messageProcessor. * @return the header enricher spec. * @see HeaderEnricher#setMessageProcessor(MessageProcessor) */ public HeaderEnricherSpec messageProcessor(MessageProcessor<?> messageProcessor) { this.messageProcessor = messageProcessor; return _this(); }
/** * Configure an optional custom {@link MessageProcessor} for the enricher. The * processor must return a {@link Map} of header names and values. They will be added * to the inbound message headers before evaluating the individual configured header * specifications. * @param messageProcessor the messageProcessor. * @return the header enricher spec. * @see HeaderEnricher#setMessageProcessor(MessageProcessor) */ public HeaderEnricherSpec messageProcessor(MessageProcessor<?> messageProcessor) { this.messageProcessor = messageProcessor; return _this(); }
/** * Add a single header specification where the value is obtained by calling the * {@link HeaderValueMessageProcessor}. * @param name the header name. * @param headerValueMessageProcessor the message processor. * @param <V> the value type. * @return the header enricher spec. */ public <V> HeaderEnricherSpec header(String name, HeaderValueMessageProcessor<V> headerValueMessageProcessor) { Assert.hasText(name, "'name' must not be empty"); this.headerToAdd.put(name, headerValueMessageProcessor); return _this(); }
/** * Add a single header specification where the value is obtained by calling the * {@link HeaderValueMessageProcessor}. * @param name the header name. * @param headerValueMessageProcessor the message processor. * @param <V> the value type. * @return the header enricher spec. */ public <V> HeaderEnricherSpec header(String name, HeaderValueMessageProcessor<V> headerValueMessageProcessor) { Assert.hasText(name, "'name' must not be empty"); this.headerToAdd.put(name, headerValueMessageProcessor); return _this(); }
/** * Add a single header specification where the value is obtained by calling the * {@link HeaderValueMessageProcessor}. * @param headerName the header name. * @param headerValueMessageProcessor the message processor. * @param <V> the value type. * @return the header enricher spec. */ public <V> HeaderEnricherSpec header(String headerName, HeaderValueMessageProcessor<V> headerValueMessageProcessor) { Assert.hasText(headerName, "'headerName' must not be empty"); this.headerToAdd.put(headerName, headerValueMessageProcessor); return _this(); }
/** * Determine the default action to take when setting individual header specifications * without an explicit 'overwrite' argument. * @param defaultOverwrite the defaultOverwrite. * @return the header enricher spec. * @see HeaderEnricher#setDefaultOverwrite(boolean) */ public HeaderEnricherSpec defaultOverwrite(boolean defaultOverwrite) { this.headerEnricher.setDefaultOverwrite(defaultOverwrite); return _this(); }
/** * Configure an optional custom {@link MessageProcessor} for the enricher. The * processor must return a {@link Map} of header names and values. They will be added * to the inbound message headers before evaluating the individual configured header * specifications. * @param messageProcessor the messageProcessor. * @return the header enricher spec. * @see HeaderEnricher#setMessageProcessor(MessageProcessor) */ public HeaderEnricherSpec messageProcessor(MessageProcessor<?> messageProcessor) { this.headerEnricher.setMessageProcessor(messageProcessor); return _this(); }
/** * @param shouldSkipNulls the shouldSkipNulls. * @return the header enricher spec. * @see HeaderEnricher#setShouldSkipNulls(boolean) */ public HeaderEnricherSpec shouldSkipNulls(boolean shouldSkipNulls) { this.headerEnricher.setShouldSkipNulls(shouldSkipNulls); return _this(); }