Package com.castlabs.sdk.debug

# Class DebugRequestResponseModifier

java.lang.Object
com.castlabs.sdk.debug.DebugRequestResponseModifier

All Implemented Interfaces:
  `RequestModifier`, `ResponseModifier`

public class DebugRequestResponseModifier extends Object implements RequestModifier, ResponseModifier
A `RequestModifier` and `ResponseModifier` that logs requests and responses based on the configuration of the provided `DebugPlugin`.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from interface com.castlabs.android.network.RequestModifier

  `RequestModifier.Listener`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DebugRequestResponseModifier(DebugPlugin debugPlugin)`
  Creates a new instance of `DebugRequestResponseModifier`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Request`
  `onRequest(Request request)`
  `Response`
  `onResponse(Response response)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DebugRequestResponseModifier

    public DebugRequestResponseModifier(DebugPlugin debugPlugin)
    Creates a new instance of `DebugRequestResponseModifier`.
    Parameters:
      `debugPlugin` - The `DebugPlugin` to use for configuration.

- ## Method Details

  - ### onRequest

    @NonNull public Request onRequest(@NonNull Request request)
    Specified by:
      `onRequest` in interface `RequestModifier`

  - ### onResponse

    @NonNull public Response onResponse(@NonNull Response response)
    Specified by:
      `onResponse` in interface `ResponseModifier`