public class TraceHeaderProcessor extends Object implements org.apache.camel.Processor
TRACE_HEADER
in exchange.
Processor works with our input asynchronous messages (trace header is in SOAP header) and also with input messages (trace header is in SOAP body).
Trace header is mandatory by default but you can change it.
Modifier and Type | Field and Description |
---|---|
static String |
TRACE_HEADER
Header value that holds
TraceHeader . |
static String |
TRACE_HEADER_ELM |
Constructor and Description |
---|
TraceHeaderProcessor(boolean mandatoryHeader,
List<TraceIdentifierValidator> validatorList)
Creates immutable Trace Header processor.
|
Modifier and Type | Method and Description |
---|---|
List<TraceIdentifierValidator> |
getValidatorList()
Returns list of
TraceIdentifierValidator . |
boolean |
isMandatoryHeader()
Returns
true when trace header is mandatory,
or false when nothing happens when there is no trace header. |
void |
process(org.apache.camel.Exchange exchange) |
public static final String TRACE_HEADER
TraceHeader
.public static final String TRACE_HEADER_ELM
public TraceHeaderProcessor(boolean mandatoryHeader, @Nullable List<TraceIdentifierValidator> validatorList) throws JAXBException
mandatoryHeader
- if trace header is mandatoryvalidatorList
- the collection of trace identifier validatorsJAXBException
- if an error was encountered while creating the JAXBContextpublic void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
public boolean isMandatoryHeader()
true
when trace header is mandatory,
or false
when nothing happens when there is no trace header.public List<TraceIdentifierValidator> getValidatorList()
TraceIdentifierValidator
.TraceIdentifierValidator
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.