Class InitializeProfileRequestContext

    • Field Detail

      • profileId

        @Nullable
        private String profileId
        The profile ID to initialize the context to.
      • legacyProfileId

        @Nullable
        private String legacyProfileId
        Backup profile ID to populate as a legacy value.
      • loggingId

        @Nullable
        private String loggingId
        The logging ID to initialize the context to.
      • browserProfile

        private boolean browserProfile
        Whether this is a browser-based profile request.
      • captureQueryParameters

        private boolean captureQueryParameters
        Whether to capture and store off query parameters.
    • Constructor Detail

      • InitializeProfileRequestContext

        public InitializeProfileRequestContext()
    • Method Detail

      • setProfileId

        public void setProfileId​(@Nullable
                                 String id)
        Set the profile ID to populate into the context.
        Parameters:
        id - profile ID to populate into the context
      • setLegacyProfileId

        public void setLegacyProfileId​(@Nullable
                                       String id)
        Set the legacy/fallback profile ID to populate into the context.
        Parameters:
        id - legacy profile ID to populate into the context
        Since:
        4.2.0
      • setLoggingId

        public void setLoggingId​(@Nullable
                                 String id)
        Set the logging ID to populate into the context.
        Parameters:
        id - logging ID to populate into the context
      • setBrowserProfile

        public void setBrowserProfile​(boolean browser)
        Set whether the request is browser-based, defaults to false.
        Parameters:
        browser - flag to set
      • setCaptureQueryParameters

        public void setCaptureQueryParameters​(boolean flag)
        Set whether to capture incoming query parameters in a ScratchContext, defaults to false.
        Parameters:
        flag - flag to set
        Since:
        4.1.0