public abstract class AbstractSegmentDecorator extends Object implements SegmentDecorator
SegmentDecorator interface.CAMEL_COMPONENT, DEFAULT| Constructor and Description |
|---|
AbstractSegmentDecorator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getOperationName(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method returns the operation name to use with the segment representing this exchange and endpoint.
|
boolean |
newSegment()
This method indicates whether the component associated with the SegmentDecorator should result in a new segment
being created.
|
void |
post(com.amazonaws.xray.entities.Entity segment,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method adds appropriate details (tags/logs) to the supplied segment based on the post processing of the
exchange.
|
void |
pre(com.amazonaws.xray.entities.Entity segment,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the
exchange.
|
static String |
stripSchemeAndOptions(org.apache.camel.Endpoint endpoint)
This method removes the scheme, any leading slash characters and options from the supplied URI.
|
static Map<String,String> |
toQueryParameters(String uri)
Extracts any parameters passed in the given URI as a key-value representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentpublic boolean newSegment()
SegmentDecoratornewSegment in interface SegmentDecoratorpublic String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SegmentDecoratorgetOperationName in interface SegmentDecoratorexchange - The exchangeendpoint - The endpointpublic void pre(com.amazonaws.xray.entities.Entity segment,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
SegmentDecoratorpre in interface SegmentDecoratorsegment - The segmentexchange - The exchangeendpoint - The endpointpublic void post(com.amazonaws.xray.entities.Entity segment,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
SegmentDecoratorpost in interface SegmentDecoratorsegment - The segmentexchange - The exchangeendpoint - The endpointpublic static String stripSchemeAndOptions(org.apache.camel.Endpoint endpoint)
endpoint - The endpointApache Camel