Class RestSegmentDecorator
java.lang.Object
org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
org.apache.camel.component.aws.xray.decorators.http.AbstractHttpSegmentDecorator
org.apache.camel.component.aws.xray.decorators.http.RestSegmentDecorator
- All Implemented Interfaces:
SegmentDecorator
-
Field Summary
Fields inherited from class org.apache.camel.component.aws.xray.decorators.http.AbstractHttpSegmentDecorator
GET_METHOD, POST_METHODFields inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator
CAMEL_COMPONENT, DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe camel component associated with the decorator.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.getParameters(String path) protected static Stringvoidpre(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.Methods inherited from class org.apache.camel.component.aws.xray.decorators.http.AbstractHttpSegmentDecorator
getHttpMethod, getHttpUrl, postMethods inherited from class org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
newSegment, stripSchemeAndOptions, toQueryParameters
-
Constructor Details
-
RestSegmentDecorator
public RestSegmentDecorator()
-
-
Method Details
-
getComponent
Description copied from interface:SegmentDecoratorThe camel component associated with the decorator.- Returns:
- The camel component name
-
getOperationName
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Description copied from interface:SegmentDecoratorThis method returns the operation name to use with the segment representing this exchange and endpoint.- Specified by:
getOperationNamein interfaceSegmentDecorator- Overrides:
getOperationNamein classAbstractHttpSegmentDecorator- Parameters:
exchange- The exchangeendpoint- The endpoint- Returns:
- The operation name
-
pre
public void pre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Description copied from interface:SegmentDecoratorThis method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.- Specified by:
prein interfaceSegmentDecorator- Overrides:
prein classAbstractHttpSegmentDecorator- Parameters:
segment- The segmentexchange- The exchangeendpoint- The endpoint
-
getPath
-
getParameters
-