public class ApnInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ApnInfo.AuthType
Authentication types.
|
static class |
ApnInfo.BearerType |
static class |
ApnInfo.MvnoType |
static class |
ApnInfo.ProtocolType |
Constructor and Description |
---|
ApnInfo()
Default Constructor
|
ApnInfo(java.lang.String name,
java.lang.String apn,
java.lang.String proxy,
java.lang.String port,
java.lang.String mmsProxy,
java.lang.String mmsPort,
java.lang.String user,
java.lang.String server,
java.lang.String password,
java.lang.String mmsc,
java.lang.String type,
java.lang.String mcc,
java.lang.String mnc,
ApnInfo.AuthType authType,
ApnInfo.ProtocolType protocol,
ApnInfo.ProtocolType roamingProtocol,
ApnInfo.BearerType bearer,
ApnInfo.MvnoType mvnoType,
java.lang.String mvnoMatchData)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApn()
Get access point name.
|
ApnInfo.AuthType |
getAuthType()
Get authentication type.
|
ApnInfo.BearerType |
getBearer()
Get bearer type.
|
java.lang.String |
getMcc()
Get mobile country code.
|
java.lang.String |
getMmsc()
Get Mmsc address.
|
java.lang.String |
getMmsPort()
Get access point Mms proxy port.
|
java.lang.String |
getMmsProxy()
Get access point Mms proxy.
|
java.lang.String |
getMnc()
Get mobile network code.
|
java.lang.String |
getMvnoMatchData()
Get Mvno match data Info.
|
ApnInfo.MvnoType |
getMvnoType()
Get mobile virtual network operator type.
|
java.lang.String |
getName()
Get access point setting name.
|
java.lang.String |
getPassword()
Get access point password.
|
java.lang.String |
getPort()
Get Http proxy port.
|
ApnInfo.ProtocolType |
getProtocol()
Get protocol type.
|
java.lang.String |
getProxy()
Get Http proxy.
|
ApnInfo.ProtocolType |
getRoamingProtocol()
Get roaming protocol type.
|
java.lang.String |
getServer()
Get access point server address.
|
java.lang.String |
getType()
Get access point type.
|
java.lang.String |
getUser()
Get access point user name.
|
void |
setApn(java.lang.String apn)
Set the access point name.
|
void |
setAuthType(ApnInfo.AuthType authType)
Set the method that your device may use to supply your username and password to the server for your PPP (Point-to-Point Protocol) connection.
|
void |
setBearer(ApnInfo.BearerType bearer)
Set the bearer type of access point setting.
|
void |
setMcc(java.lang.String mcc)
Set mobile country code.
|
void |
setMmsc(java.lang.String mmsc)
Set the Mmsc address.
|
void |
setMmsPort(java.lang.String mmsPort)
Set the Mms proxy port of access point.
|
void |
setMmsProxy(java.lang.String mmsProxy)
Set the Mms proxy that will be used only for communicating with the MMS Gateway Server.
|
void |
setMnc(java.lang.String mnc)
Set mobile network code.
|
void |
setMvnoMatchData(java.lang.String mvnoMatchData)
Set Mvno match data Info.
|
void |
setMvnoType(ApnInfo.MvnoType mvnoType)
Set the mobile virtual network operator type of access point setting.
|
void |
setName(java.lang.String name)
Set the name of access point setting.
|
void |
setPassword(java.lang.String password)
Set the password of access point.
|
void |
setPort(java.lang.String port)
Set the Http proxy port.
|
void |
setProtocol(ApnInfo.ProtocolType protocol)
Set the protocol type of access point setting.
|
void |
setProxy(java.lang.String proxy)
Set the Http proxy.
|
void |
setRoamingProtocol(ApnInfo.ProtocolType roamingProtocol)
Set the roaming protocol type of access point setting.
|
void |
setServer(java.lang.String server)
Set the server address of access point.
|
void |
setType(java.lang.String type)
Set access point type.
|
void |
setUser(java.lang.String user)
Set the user name of access point.
|
public ApnInfo()
public ApnInfo(java.lang.String name, java.lang.String apn, java.lang.String proxy, java.lang.String port, java.lang.String mmsProxy, java.lang.String mmsPort, java.lang.String user, java.lang.String server, java.lang.String password, java.lang.String mmsc, java.lang.String type, java.lang.String mcc, java.lang.String mnc, ApnInfo.AuthType authType, ApnInfo.ProtocolType protocol, ApnInfo.ProtocolType roamingProtocol, ApnInfo.BearerType bearer, ApnInfo.MvnoType mvnoType, java.lang.String mvnoMatchData)
name
- Access point setting name.apn
- Access point name.proxy
- Http proxy.port
- Http proxy port.mmsProxy
- Access point Mms proxy.mmsPort
- Access point Mms proxy port.user
- Access point user name.server
- Access point server address.password
- Access point password.mmsc
- Mmsc address.type
- Access point type.mcc
- Mobile country code.mnc
- Mobile network code.authType
- Authentication type.protocol
- Protocol type.roamingProtocol
- Roaming protocol type.bearer
- Bearer type.mvnoType
- Mobile virtual network operator type.mvnoMatchData
- Mvno match data Info.public void setName(java.lang.String name)
name
- access point setting name.public void setApn(java.lang.String apn)
apn
- access point name.public void setProxy(java.lang.String proxy)
proxy
- Http proxy.public void setPort(java.lang.String port)
port
- Http proxy port.public void setMmsProxy(java.lang.String mmsProxy)
mmsProxy
- access point Mms proxy.public void setMmsPort(java.lang.String mmsPort)
mmsPort
- access point Mms proxy port.public void setUser(java.lang.String user)
user
- access point user name.public void setServer(java.lang.String server)
server
- access point server address.public void setPassword(java.lang.String password)
password
- access point password.public void setMmsc(java.lang.String mmsc)
mmsc
- Mmsc address.public void setAuthType(ApnInfo.AuthType authType)
authType
- authentication type.
Enum Constants | Authentication Type |
---|---|
AuthType.AUTH_TYPE_NOT_SET | Not set |
AuthType.AUTH_TYPE_NONE | None |
AuthType.AUTH_TYPE_PAP | Password authentication protocol |
AuthType.AUTH_TYPE_CHAP | Challenge Handshake Authentication Protocol |
AuthType.AUTH_TYPE_PAP_OR_CHAP | PAP or CHAP |
public void setProtocol(ApnInfo.ProtocolType protocol)
protocol
- protocol type.
Enum Constants | Protocol Type |
---|---|
ProtocolType.PROTOCOL_TYPE_IPV4 | Internet Protocol Version 4 |
ProtocolType.PROTOCOL_TYPE_IPV6 | Internet Protocol Version 6 |
ProtocolType.PROTOCOL_TYPE_IPV4V6 | IPv4 or IPv6 |
public void setRoamingProtocol(ApnInfo.ProtocolType roamingProtocol)
roamingProtocol
- protocol type.
Enum Constants | Protocol Type |
---|---|
ProtocolType.PROTOCOL_TYPE_IPV4 | Internet Protocol Version 4 |
ProtocolType.PROTOCOL_TYPE_IPV6 | Internet Protocol Version 6 |
ProtocolType.PROTOCOL_TYPE_IPV4V6 | IPv4 or IPv6 |
public void setType(java.lang.String type)
type
- access point type.public void setMcc(java.lang.String mcc)
mcc
- mobile country code.public void setMnc(java.lang.String mnc)
mnc
- mobile network code.public void setBearer(ApnInfo.BearerType bearer)
bearer
- bearer type.
Enum Constants | Bearer Type |
---|---|
BearerType.BEARER_TYPE_LTE | Long Term Evolution |
BearerType.BEARER_TYPE_EHRPD | Enhanced High Rate Packet Data |
BearerType.BEARER_TYPE_UNSPECIFIED | Unspecified |
public void setMvnoType(ApnInfo.MvnoType mvnoType)
mvnoType
- mvno type.
Enum Constants | MVNO Type |
---|---|
MvnoType.MVNO_TYPE_NONE | None |
MvnoType.MVNO_TYPE_SPN | Service Provider Name |
MvnoType.MVNO_TYPE_IMSI | International Mobile Subscriber Identity |
MvnoType.MVNO_TYPE_GID | Group Identifier |
public void setMvnoMatchData(java.lang.String mvnoMatchData)
mvnoMatchData
- Mvno match data Info.public java.lang.String getName()
public java.lang.String getApn()
public java.lang.String getProxy()
public java.lang.String getPort()
public java.lang.String getMmsProxy()
public java.lang.String getMmsPort()
public java.lang.String getUser()
public java.lang.String getServer()
public java.lang.String getPassword()
public java.lang.String getMmsc()
public ApnInfo.AuthType getAuthType()
public ApnInfo.ProtocolType getProtocol()
public ApnInfo.ProtocolType getRoamingProtocol()
public java.lang.String getType()
public java.lang.String getMcc()
public java.lang.String getMnc()
public ApnInfo.BearerType getBearer()
public ApnInfo.MvnoType getMvnoType()
public java.lang.String getMvnoMatchData()