Interface PlmnIdAnalyser


  • public interface PlmnIdAnalyser
    An interface for a provider that can be used by features to determine if a PLMN ID (combination of MCC and MNC) is a home PLMN ID, or classify it as a Home PLMN ID, an MCC-only match, or no match. This analyser can be looked up using its JNDI name.
    • Method Detail

      • classifyMccMnc

        PlmnIdAnalyser.PlmnIdMatch classifyMccMnc​(MccMnc mccMnc,
                                                  com.opencloud.sentinel.common.SentinelSelectionKey sentinelSelectionKey)
        Classify an MccMnc
        Parameters:
        mccMnc - the MccMnc object to classify
        sentinelSelectionKey - the Selection Key to use for looking up configuration
        Returns:
        PlmnIdMatch.HOME_PLMN_ID if mccMnc is a home PLMN ID, PlmnIdMatch.MCC_ONLY if the MCC is a home MCC but the MNC was not matched, and PlmnIdMatch.NO_MATCH otherwise
      • isHomePlmnId

        boolean isHomePlmnId​(MccMnc mccMnc,
                             com.opencloud.sentinel.common.SentinelSelectionKey sentinelSelectionKey)
        Determine if an MccMnc is a home PLMN ID
        Parameters:
        mccMnc - the MccMnc object to classify
        sentinelSelectionKey - the Selection Key to use for looking up configuration
        Returns:
        true if mccMnc is a home PLMN ID, false otherwise