Package com.mparticle.networking
Class DomainMapping
- java.lang.Object
-
- com.mparticle.networking.DomainMapping
-
public class DomainMapping extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainMapping.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DomainMapping.Builder
aliasMapping(java.lang.String newUrl)
Override the url of outbound Alias events requests.static DomainMapping.Builder
aliasMapping(java.lang.String newUrl, boolean overridesSubdirectory)
Override the url of outbound Alias events requests.static DomainMapping.Builder
audienceMapping(java.lang.String newUrl)
Override the url of outbound Audience requestsstatic DomainMapping.Builder
audienceMapping(java.lang.String newUrl, boolean overridesSubdirectory)
Override the url of outbound Audience requests.static DomainMapping.Builder
configMapping(java.lang.String newUrl)
Override the url of outbound Config requestsstatic DomainMapping.Builder
configMapping(java.lang.String newUrl, boolean overridesSubdirectory)
Override the url of outbound Config requests.static DomainMapping.Builder
eventsMapping(java.lang.String newUrl)
Override the url of outbound Events requests, including Alias eventsstatic DomainMapping.Builder
eventsMapping(java.lang.String newUrl, boolean overridesSubdirectory)
Override the url of outbound Events requests, including Alias events.static DomainMapping.Builder
eventsMapping(java.lang.String newUrl, boolean overridesSubdirectory, boolean eventsOnly)
Override the url of outbound Events requests.java.util.List<Certificate>
getCertificates()
java.lang.String
getUrl()
static DomainMapping.Builder
identityMapping(java.lang.String newUrl)
Override the url of outbound Identity requestsstatic DomainMapping.Builder
identityMapping(java.lang.String newUrl, boolean overridesSubdirectory)
Override the url of outbound Identity requests.boolean
isOverridesSubdirectory()
java.lang.String
toString()
-
-
-
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 urloverridesSubdirectory
- 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 urloverridesSubdirectory
- 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 urloverridesSubdirectory
- indicate whether the new domain includes the subdirectoryeventsOnly
- 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 urloverridesSubdirectory
- 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 urloverridesSubdirectory
- 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 urloverridesSubdirectory
- 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 classjava.lang.Object
-
-