ApnSettingpublic class ApnSetting extends Object This class represents a apn setting for create PDP link |
Fields Summary |
---|
String | carrier | String | apn | String | proxy | String | port | String | mmsc | String | mmsProxy | String | mmsPort | String | user | String | password | String[] | types | int | id | String | numeric |
Constructors Summary |
---|
ApnSetting(int id, String numeric, String carrier, String apn, String proxy, String port, String mmsc, String mmsProxy, String mmsPort, String user, String password, String[] types)
this.id = id;
this.numeric = numeric;
this.carrier = carrier;
this.apn = apn;
this.proxy = proxy;
this.port = port;
this.mmsc = mmsc;
this.mmsProxy = mmsProxy;
this.mmsPort = mmsPort;
this.user = user;
this.password = password;
this.types = types;
|
Methods Summary |
---|
boolean | canHandleType(java.lang.String type)
for (String t : types) {
if (t.equals(type) || t.equals(Phone.APN_TYPE_ALL)) {
return true;
}
}
return false;
| public java.lang.String | toString()
StringBuilder sb = new StringBuilder();
sb.append(carrier)
.append(", ").append(id)
.append(", ").append(numeric)
.append(", ").append(apn)
.append(", ").append(proxy)
.append(", ").append(mmsc)
.append(", ").append(mmsProxy)
.append(", ").append(mmsPort)
.append(", ").append(port);
for (String t : types) {
sb.append(", ").append(t);
}
return sb.toString();
|
|