FileDocCategorySizeDatePackage
ApnSetting.javaAPI DocAndroid 1.5 API2322Wed May 06 22:42:02 BST 2009com.android.internal.telephony.gsm

ApnSetting

public 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
booleancanHandleType(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.StringtoString()

        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();