Class EdgeSvcNetworkAddrTargetingCriteria


  • public class EdgeSvcNetworkAddrTargetingCriteria
    extends EdgeSvcsTargetingCriteria
    Edge Discovery Services targeting criteria based on current UserEquipment network IP address.
    • Field Detail

      • DEFAULT_IP_PREFERENCE

        public static IpAddrMode DEFAULT_IP_PREFERENCE
    • Constructor Detail

      • EdgeSvcNetworkAddrTargetingCriteria

        public EdgeSvcNetworkAddrTargetingCriteria​(@NonNull
                                                   java.lang.String svcEndpointsId,
                                                   @NonNull
                                                   android.net.Network targetNetwork)
        Construct Network Address targeting criteria for supplied serviceEndpoint IDs, using default preferring IPv6 and without region targeting.
        Parameters:
        svcEndpointsId - MEC Edge Service Endpoint ID.
        targetNetwork - Cellular network used to determine device IP address. Likely same connection that will be used for connecting to edge services.
      • EdgeSvcNetworkAddrTargetingCriteria

        public EdgeSvcNetworkAddrTargetingCriteria​(@NonNull
                                                   java.lang.String svcEndpointsId,
                                                   @NonNull
                                                   android.net.Network targetNetwork,
                                                   @Nullable
                                                   java.lang.String region)
        Construct Network Address targeting criteria for supplied serviceEndpoint IDs, using default preferring IPv6 and without region targeting.
        Parameters:
        svcEndpointsId - MEC Edge Service Endpoint ID.
        targetNetwork - Cellular network used to determine device IP address. Likely same connection that will be used for connecting to edge services.
        region - MEC region target, optional. May be null.
      • EdgeSvcNetworkAddrTargetingCriteria

        public EdgeSvcNetworkAddrTargetingCriteria​(@NonNull
                                                   java.lang.String svcEndpointsId,
                                                   @NonNull
                                                   android.net.Network targetNetwork,
                                                   IpAddrMode ipTypePreference,
                                                   @Nullable
                                                   java.lang.String region)
        Full Constructor
        Parameters:
        svcEndpointsId - MEC Edge Service Endpoint ID.
        targetNetwork - Cellular network used to determine device IP address. Likely same connection that will be used for connecting to edge services.
        ipTypePreference - IP preference (IPv6 vs IPv4).
        region - MEC region target, optional. May be null.
    • Method Detail

      • getRegion

        @Nullable
        public java.lang.String getRegion()
        Get Region
        Returns:
        region value supplied to constructor. may be null.
      • getTargetNetwork

        @NonNull
        public android.net.Network getTargetNetwork()
        Get Target Network for UE IP Address
        Returns:
        target network, may be null.
      • getIpAddressPreference

        @NonNull
        public IpAddrMode getIpAddressPreference()
        Get IP address preference (prefer IPv4 or IPv6)
        Returns:
        IP preference