public class RestSegmentDecorator extends AbstractHttpSegmentDecorator
GET_METHOD, POST_METHOD
CAMEL_COMPONENT, DEFAULT
Constructor and Description |
---|
RestSegmentDecorator() |
Modifier and Type | Method and Description |
---|---|
String |
getComponent()
The camel component associated with the decorator.
|
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.
|
protected static List<String> |
getParameters(String path) |
protected static String |
getPath(String uri) |
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.
|
getHttpMethod, getHttpUrl, post
newSegment, stripSchemeAndOptions, toQueryParameters
public String getComponent()
SegmentDecorator
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SegmentDecorator
getOperationName
in interface SegmentDecorator
getOperationName
in class AbstractHttpSegmentDecorator
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 AbstractHttpSegmentDecorator
segment
- The segmentexchange
- The exchangeendpoint
- The endpointApache Camel