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 classDomainMapping.Builder 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DomainMapping.BuilderaliasMapping(java.lang.String newUrl)Override the url of outbound Alias events requests.static DomainMapping.BuilderaliasMapping(java.lang.String newUrl, boolean overridesSubdirectory)Override the url of outbound Alias events requests.static DomainMapping.BuilderaudienceMapping(java.lang.String newUrl)Override the url of outbound Audience requestsstatic DomainMapping.BuilderaudienceMapping(java.lang.String newUrl, boolean overridesSubdirectory)Override the url of outbound Audience requests.static DomainMapping.BuilderconfigMapping(java.lang.String newUrl)Override the url of outbound Config requestsstatic DomainMapping.BuilderconfigMapping(java.lang.String newUrl, boolean overridesSubdirectory)Override the url of outbound Config requests.static DomainMapping.BuildereventsMapping(java.lang.String newUrl)Override the url of outbound Events requests, including Alias eventsstatic DomainMapping.BuildereventsMapping(java.lang.String newUrl, boolean overridesSubdirectory)Override the url of outbound Events requests, including Alias events.static DomainMapping.BuildereventsMapping(java.lang.String newUrl, boolean overridesSubdirectory, boolean eventsOnly)Override the url of outbound Events requests.java.util.List<Certificate>getCertificates()java.lang.StringgetUrl()static DomainMapping.BuilderidentityMapping(java.lang.String newUrl)Override the url of outbound Identity requestsstatic DomainMapping.BuilderidentityMapping(java.lang.String newUrl, boolean overridesSubdirectory)Override the url of outbound Identity requests.booleanisOverridesSubdirectory()java.lang.StringtoString() 
 - 
 
- 
- 
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:
 toStringin classjava.lang.Object
 
 - 
 
 -