Class AbstractHttpSegmentDecorator

java.lang.Object
org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
org.apache.camel.component.aws.xray.decorators.http.AbstractHttpSegmentDecorator
All Implemented Interfaces:
SegmentDecorator
Direct Known Subclasses:
AhcSegmentDecorator, HttpSegmentDecorator, JettySegmentDecorator, NettyHttpSegmentDecorator, RestSegmentDecorator, ServletSegmentDecorator, UndertowSegmentDecorator

public abstract class AbstractHttpSegmentDecorator extends AbstractSegmentDecorator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator

    CAMEL_COMPONENT, DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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)
     
    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.

    Methods inherited from class org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator

    newSegment, stripSchemeAndOptions, toQueryParameters

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator

    getComponent
  • Field Details

  • Constructor Details

    • AbstractHttpSegmentDecorator

      public AbstractHttpSegmentDecorator()
  • Method Details

    • 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 AbstractSegmentDecorator
      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 AbstractSegmentDecorator
      Parameters:
      segment - The segment
      exchange - The exchange
      endpoint - The endpoint
    • post

      public void post(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 post processing of the exchange.
      Specified by:
      post in interface SegmentDecorator
      Overrides:
      post in class AbstractSegmentDecorator
      Parameters:
      segment - The segment
      exchange - The exchange
      endpoint - The endpoint
    • getHttpMethod

      protected String getHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
    • getHttpUrl

      protected String getHttpUrl(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)