Class ReplayApiResponse

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @InternalApi() 
    public final class ReplayApiResponse
    extends ApiResponse
                        

    Provides a simulated HTTP response from a replay file.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final ResponseBody body
      public final int statusCode
      public final Headers headers
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplayApiResponse(ArrayNode bodySegments, int statusCode, Headers headers, boolean isStream)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ResponseBody getBody() Gets the ResponseBody.
      int getStatusCode()
      Headers getHeaders() Returns all of the headers from the response.
      void close()
      • Methods inherited from class java.lang.AutoCloseable

        close
      • Methods inherited from class java.lang.Object

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

      • ReplayApiResponse

        ReplayApiResponse(ArrayNode bodySegments, int statusCode, Headers headers, boolean isStream)
    • Method Detail

      • getBody

         ResponseBody getBody()

        Gets the ResponseBody.

      • getHeaders

         Headers getHeaders()

        Returns all of the headers from the response.