Class RecordNetworkCallPolicy

  • All Implemented Interfaces:
    com.azure.android.core.http.HttpPipelinePolicy

    public class RecordNetworkCallPolicy
    extends java.lang.Object
    implements com.azure.android.core.http.HttpPipelinePolicy
    HTTP Pipeline policy that keeps track of each HTTP request and response that flows through the pipeline. Data is recorded into RecordedData.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(com.azure.android.core.http.HttpPipelinePolicyChain chain)  
      • Methods inherited from class java.lang.Object

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

      • RecordNetworkCallPolicy

        public RecordNetworkCallPolicy​(RecordedData recordedData)
        Creates a policy that records network calls into recordedData.
        Parameters:
        recordedData - The record to persist network calls into.
    • Method Detail

      • process

        public void process​(com.azure.android.core.http.HttpPipelinePolicyChain chain)
        Specified by:
        process in interface com.azure.android.core.http.HttpPipelinePolicy