Class DomainMapping


  • public class DomainMapping
    extends java.lang.Object
    • Method Detail

      • configMapping

        @NonNull
        public static DomainMapping.Builder configMapping​(@Nullable
                                                          java.lang.String newUrl)
        Override the url of outbound Config requests
        Parameters:
        newUrl - the new domain portion of the url
        Returns:
        the Builder instance
      • configMapping

        public static DomainMapping.Builder configMapping​(@Nullable
                                                          java.lang.String newUrl,
                                                          boolean overridesSubdirectory)
        Override the url of outbound Config requests. The subdirectory of the url will also be overridden if {@param overridesSubdirectory} is true
        Parameters:
        newUrl - the new domain portion of the url
        overridesSubdirectory - indicate whether the new domain includes the subdirectory
        Returns:
        the Builder instance
      • eventsMapping

        @NonNull
        public static DomainMapping.Builder eventsMapping​(@Nullable
                                                          java.lang.String newUrl)
        Override the url of outbound Events requests, including Alias events
        Parameters:
        newUrl - the new domain portion of the url
        Returns:
        the Builder instance
      • eventsMapping

        public static DomainMapping.Builder eventsMapping​(@Nullable
                                                          java.lang.String newUrl,
                                                          boolean overridesSubdirectory)
        Override the url of outbound Events requests, including Alias events. The subdirectory of the url will also be overridden if {@param overridesSubdirectory} is true
        Parameters:
        newUrl - the new domain portion of the url
        overridesSubdirectory - indicate whether the new domain includes the subdirectory
        Returns:
        the Builder instance
      • eventsMapping

        public static DomainMapping.Builder eventsMapping​(@Nullable
                                                          java.lang.String newUrl,
                                                          boolean overridesSubdirectory,
                                                          boolean eventsOnly)
        Override the url of outbound Events requests. The subdirectory of the url will also be overridden if {@param overridesSubdirectory} is true. {@param eventsOnly} with indicate if this mapping should only be applied to Events requests, and specifically not Alias events
        Parameters:
        newUrl - the new domain portion of the url
        overridesSubdirectory - indicate whether the new domain includes the subdirectory
        eventsOnly - indicates whether this mapping should only apply to core, non-alias events
        Returns:
        the Builder instance
      • aliasMapping

        public static DomainMapping.Builder aliasMapping​(@Nullable
                                                         java.lang.String newUrl)
        Override the url of outbound Alias events requests.
        Parameters:
        newUrl - the new domain portion of the url
        Returns:
        the Builder instance
      • aliasMapping

        public static DomainMapping.Builder aliasMapping​(@Nullable
                                                         java.lang.String newUrl,
                                                         boolean overridesSubdirectory)
        Override the url of outbound Alias events requests. The subdirectory of the url will also be overridden if {@param overridesSubdirectory} is true
        Parameters:
        newUrl - the new domain portion of the url
        overridesSubdirectory - indicate whether the new domain includes the subdirectory
        Returns:
        the Builder instance
      • identityMapping

        @NonNull
        public static DomainMapping.Builder identityMapping​(@Nullable
                                                            java.lang.String newUrl)
        Override the url of outbound Identity requests
        Parameters:
        newUrl - the new domain portion of the url
        Returns:
        the Builder instance
      • identityMapping

        public static DomainMapping.Builder identityMapping​(@Nullable
                                                            java.lang.String newUrl,
                                                            boolean overridesSubdirectory)
        Override the url of outbound Identity requests. The subdirectory of the url will also be overridden if {@param overridesSubdirectory} is true
        Parameters:
        newUrl - the new domain portion of the url
        overridesSubdirectory - indicate whether the new domain includes the subdirectory
        Returns:
        the Builder instance
      • audienceMapping

        @NonNull
        public static DomainMapping.Builder audienceMapping​(@Nullable
                                                            java.lang.String newUrl)
        Override the url of outbound Audience requests
        Parameters:
        newUrl - the new domain portion of the url
        Returns:
        the Builder instance
      • audienceMapping

        public static DomainMapping.Builder audienceMapping​(@Nullable
                                                            java.lang.String newUrl,
                                                            boolean overridesSubdirectory)
        Override the url of outbound Audience requests. The subdirectory of the url will also be overridden if {@param overridesSubdirectory} is true
        Parameters:
        newUrl - the new domain portion of the url
        overridesSubdirectory - indicate whether the new domain includes the subdirectory
        Returns:
        the Builder instance
      • getUrl

        @Nullable
        public java.lang.String getUrl()
      • getCertificates

        @NonNull
        public java.util.List<Certificate> getCertificates()
      • isOverridesSubdirectory

        public boolean isOverridesSubdirectory()
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object