Class RestSegmentDecorator

All Implemented Interfaces:
SegmentDecorator

public class RestSegmentDecorator extends AbstractHttpSegmentDecorator
  • Constructor Details

    • RestSegmentDecorator

      public RestSegmentDecorator()
  • Method Details

    • getComponent

      public String getComponent()
      Description copied from interface: SegmentDecorator
      The 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: SegmentDecorator
      This method returns the operation name to use with the segment representing this exchange and endpoint.
      Specified by:
      getOperationName in interface SegmentDecorator
      Overrides:
      getOperationName in class AbstractHttpSegmentDecorator
      Parameters:
      exchange - The exchange
      endpoint - 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: SegmentDecorator
      This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.
      Specified by:
      pre in interface SegmentDecorator
      Overrides:
      pre in class AbstractHttpSegmentDecorator
      Parameters:
      segment - The segment
      exchange - The exchange
      endpoint - The endpoint
    • getPath

      protected static String getPath(String uri)
    • getParameters

      protected static List<String> getParameters(String path)