public abstract class HeaderUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
getHeaders(Map<String,Object> messageContext,
String key,
boolean useInputMessage,
boolean needCreateWhenNotExist,
Supplier<T> defaultValueFactory)
Returns headers of the message represented by the given context.
|
static void |
processIncomingHeaders(Map<String,Object> messageContext,
org.apache.camel.Message message) |
static void |
processUserDefinedOutgoingHeaders(Map<String,Object> messageContext,
org.apache.camel.Message message,
boolean isRequest) |
public static void processIncomingHeaders(Map<String,Object> messageContext, org.apache.camel.Message message)
public static void processUserDefinedOutgoingHeaders(Map<String,Object> messageContext, org.apache.camel.Message message, boolean isRequest)
public static <T> T getHeaders(Map<String,Object> messageContext, String key, boolean useInputMessage, boolean needCreateWhenNotExist, Supplier<T> defaultValueFactory)
T
- type of headers' container.messageContext
- Web Service message context.key
- key under which the headers reside in the message context.useInputMessage
- whether input message should the used.needCreateWhenNotExist
- whether the headers' map should be created when it does
not exist.defaultValueFactory
- factory for producing default values.null
when creation of a new map is not allowed.Copyright © 2018 Open eHealth Foundation. All rights reserved.