Class TracedResponseHandler<T>

java.lang.Object
com.amazonaws.xray.proxies.apache.http.TracedResponseHandler<T>
All Implemented Interfaces:
org.apache.http.client.ResponseHandler<T>

public class TracedResponseHandler<T>
extends java.lang.Object
implements org.apache.http.client.ResponseHandler<T>
Wraps an instance of org.apache.http.client.ResponseHandler and adds response information to the current subsegment.
  • Constructor Summary

    Constructors
    Constructor Description
    TracedResponseHandler​(org.apache.http.client.ResponseHandler<T> wrappedHandler)  
  • Method Summary

    Modifier and Type Method Description
    static void addResponseInformation​(Subsegment subsegment, org.apache.http.HttpResponse response)  
    T handleResponse​(org.apache.http.HttpResponse response)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TracedResponseHandler

      public TracedResponseHandler​(org.apache.http.client.ResponseHandler<T> wrappedHandler)
  • Method Details

    • addResponseInformation

      public static void addResponseInformation​(Subsegment subsegment, org.apache.http.HttpResponse response)
    • handleResponse

      public T handleResponse​(org.apache.http.HttpResponse response) throws org.apache.http.client.ClientProtocolException, java.io.IOException
      Specified by:
      handleResponse in interface org.apache.http.client.ResponseHandler<T>
      Throws:
      org.apache.http.client.ClientProtocolException
      java.io.IOException