public abstract class AbstractHttpSegmentDecorator extends AbstractSegmentDecorator
Modifier and Type | Field and Description |
---|---|
static String |
GET_METHOD |
static String |
POST_METHOD |
CAMEL_COMPONENT, DEFAULT
Constructor and Description |
---|
AbstractHttpSegmentDecorator() |
Modifier and Type | Method and Description |
---|---|
protected String |
getHttpMethod(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint) |
protected String |
getHttpUrl(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint) |
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.
|
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.
|
newSegment, stripSchemeAndOptions, toQueryParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent
public static final String POST_METHOD
public static final String GET_METHOD
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SegmentDecorator
getOperationName
in interface SegmentDecorator
getOperationName
in class AbstractSegmentDecorator
exchange
- The exchangeendpoint
- The endpointpublic void pre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SegmentDecorator
pre
in interface SegmentDecorator
pre
in class AbstractSegmentDecorator
segment
- The segmentexchange
- The exchangeendpoint
- The endpointpublic void post(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SegmentDecorator
post
in interface SegmentDecorator
post
in class AbstractSegmentDecorator
segment
- The segmentexchange
- The exchangeendpoint
- The endpointprotected String getHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
protected String getHttpUrl(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
Apache Camel