Package com.castlabs.android.network

# Class BaseRequestModifier

java.lang.Object
com.castlabs.android.network.BaseRequestModifier

All Implemented Interfaces:
  `RequestModifier`

public final class BaseRequestModifier extends Object implements RequestModifier
Modifier applying `PlayerConfig.contentParameters`, `PlayerConfig.contentQueryParameters`, `PlayerConfig.segmentParameters` and `PlayerConfig.segmentQueryParameters` if any to the `Request`

- ## Nested Class Summary

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

  `RequestModifier.Listener`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BaseRequestModifier(PlayerConfig playerConfig)`
  Constructs the Modifier

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Request`
  `onRequest(Request request)`
  Called with the current request object.

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

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

- ## Constructor Details

  - ### BaseRequestModifier

    public BaseRequestModifier(@NonNull PlayerConfig playerConfig)
    Constructs the Modifier
    Parameters:
      `playerConfig` - `PlayerConfig` holding request parameters

- ## Method Details

  - ### onRequest

    @NonNull public Request onRequest(@NonNull Request request)
    Description copied from interface: `RequestModifier`
    Called with the current request object. Note: Do not return null here. If no modification should be applied, return the received request
    Specified by:
      `onRequest` in interface `RequestModifier`
    Parameters:
      `request` - The request object
    Returns:
      The potentially modified request instance. Do not return null here