Package org.osgi.util.gsm
Class IMSICondition
java.lang.Object
org.osgi.util.gsm.IMSICondition
Class representing an IMSI condition. Instances of this class contain a
string value that is matched against the IMSI of the subscriber.
- Version:
- $Revision: 6439 $
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.osgi.service.condpermadmin.Condition
getCondition
(org.osgi.framework.Bundle bundle, org.osgi.service.condpermadmin.ConditionInfo conditionInfo) Creates an IMSI condition object.
-
Method Details
-
getCondition
public static org.osgi.service.condpermadmin.Condition getCondition(org.osgi.framework.Bundle bundle, org.osgi.service.condpermadmin.ConditionInfo conditionInfo) Creates an IMSI condition object.- Parameters:
bundle
- This parameter is ignored, as the IMSI number is a property of the mobile subscriber and thus is the same for all bundles.conditionInfo
- Contains the IMSI value against which to match the subscriber's IMSI. ItsConditionInfo.getArgs()
method should return a String array with one value: the IMSI string. The IMSI is 15 digits without hyphens. Limited pattern matching is allowed: the string is 0 to 14 digits, followed by an asterisk (*
).- Returns:
- A Condition object that indicates whether the specified IMSI
number matches that of the subscriber. If the number ends with an
asterisk (
*
), then the beginning of the IMSI is compared to the pattern. - Throws:
IllegalArgumentException
- If the IMSI is not a string of 15 digits, or 0 to 14 digits with an*
at the end.
-