| Modifier and Type | Class and Description |
|---|---|
static class |
ModemConfig.AuthType |
static class |
ModemConfig.PdpType
Configuration for a cellular modem.
|
| Constructor and Description |
|---|
ModemConfig()
Empty constructor
|
ModemConfig(int profileID,
ModemConfig.PdpType pdpType,
java.lang.String apn,
IPAddress ipAddress,
int dataCompression,
int headerCompresion)
PDP config constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActiveFilter()
Reports the value of the 'active-filter' option that specifies a packet filter to be
applied to data packets to determine which packets are to be regarded as link activity.
|
java.lang.String |
getApn()
Reports access point name.
|
ModemConfig.AuthType |
getAuthType()
Reports authentication type.
|
int |
getDataCompression()
Reports a value of numeric parameter that supports PDP data compression.
|
java.lang.String |
getDialString()
Gets the dial string.
|
int |
getHeaderCompression()
Reports a value of numeric parameter that supports PDP header compression.
|
int |
getIdle()
Reports value of the 'idle' option.
|
IPAddress |
getIpAddress()
Reports PDP IP address.
|
int |
getLcpEchoFailure()
Reports number of failed LCP echo requests
|
int |
getLcpEchoInterval()
Reports LCP echo interval
|
int |
getMaxFail()
Reports maximum number of failed connection attempts.
|
java.lang.String |
getPassword()
Deprecated.
|
Password |
getPasswordAsPassword()
Reports password.
|
ModemConfig.PdpType |
getPdpType()
Reports PDP type.
|
int |
getPppNumber()
Reports PPP number (i.e.
|
int |
getProfileID()
Reports PDP profile ID.
|
int |
getResetTimeout() |
java.lang.String |
getUsername()
Reports user name.
|
int |
hashCode() |
boolean |
isDataCompression()
Reports if PDP data compression is enabled.
|
boolean |
isEnabled()
Reports whether it is enabled.
|
boolean |
isGpsEnabled() |
boolean |
isHeaderCompression()
Reports if PDP header compression is enabled.
|
boolean |
isPersist()
Reports if pppd is instructed to exit after a connection is terminated.
|
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setActiveFilter(java.lang.String activeFilter)
Sets the value of the 'active-filter' option that specifies a packet filter to be
applied to data packets to determine which packets are to be regarded as link activity.
|
void |
setApn(java.lang.String apn)
Sets access point name.
|
void |
setAuthType(ModemConfig.AuthType authType)
Sets authentication type.
|
void |
setDataCompression(int dataCompression)
Sets a value of numeric parameter that supports PDP data compression.
|
void |
setDialString(java.lang.String dialString)
Sets the dial string.
|
void |
setEnabled(boolean enabled)
Sets the enabled setting.
|
void |
setGpsEnabled(boolean gpsEnabled) |
void |
setHeaderCompression(int headerCompression)
Sets a value of numeric parameter that supports PDP header compression.
|
void |
setIdle(int idle)
Sets value of the 'idle' option.
|
void |
setIpAddress(IPAddress address)
Sets PDP IP address.
|
void |
setLcpEchoFailure(int lcpEchoFailure)
Sets number of failed LCP echo requests
(unacknowledged LCP echo requests to be sent for pppd to presume the peer to be dead)
|
void |
setLcpEchoInterval(int lcpEchoInterval)
Sets LCP echo interval
|
void |
setMaxFail(int maxFail)
Sets maximum number of failed connection attempts
|
void |
setPassword(Password password)
Sets password.
|
void |
setPassword(java.lang.String password)
Sets password.
|
void |
setPdpType(ModemConfig.PdpType pdpType)
Sets PDP type.
|
void |
setPersist(boolean persist)
Sets 'persist' flag to instruct pppd if it needs to exit after a connection is terminated.
|
void |
setPppNumber(int pppNumber)
Sets PPP number (i.e.
|
void |
setProfileID(int id)
Sets PDP profile ID.
|
void |
setResetTimeout(int tout) |
void |
setUsername(java.lang.String username)
Sets user name.
|
java.lang.String |
toString() |
public ModemConfig()
public ModemConfig(int profileID,
ModemConfig.PdpType pdpType,
java.lang.String apn,
IPAddress ipAddress,
int dataCompression,
int headerCompresion)
apn - - access point name as StringipAddress - - IP address as StringprofileID - - PDP profile ID as intpdpType - - PDP type as ModemConfig.PdpTypedataCompression - - PDP data compression as intheaderCompresion - - PDP header compression as intpublic boolean isEnabled()
booleanpublic void setEnabled(boolean enabled)
enabled - - enabled status as booleanpublic java.lang.String getDialString()
Stringpublic void setDialString(java.lang.String dialString)
dialString - - dial string as Stringpublic ModemConfig.AuthType getAuthType()
ModemConfig.AuthTypepublic void setAuthType(ModemConfig.AuthType authType)
authType - - authentication type as ModemConfig.AuthTypepublic java.lang.String getUsername()
Stringpublic void setUsername(java.lang.String username)
username - - user name as Stringpublic java.lang.String getPassword()
Stringpublic Password getPasswordAsPassword()
Passwordpublic void setPassword(java.lang.String password)
password - - password as Stringpublic void setPassword(Password password)
password - - password as Passwordpublic boolean isPersist()
booleanpublic void setPersist(boolean persist)
persist - as booleanpublic int getMaxFail()
intpublic void setMaxFail(int maxFail)
maxFail - - maximum number of failed connection attempts as intpublic int getIdle()
intpublic void setIdle(int idle)
idle - public java.lang.String getActiveFilter()
Stringpublic void setActiveFilter(java.lang.String activeFilter)
activeFilter - - active filter as Stringpublic int getLcpEchoInterval()
intpublic void setLcpEchoInterval(int lcpEchoInterval)
lcpEchoInterval - - LCP Echo interval as intpublic int getLcpEchoFailure()
intpublic void setLcpEchoFailure(int lcpEchoFailure)
lcpEchoFailure - public int getPppNumber()
intpublic void setPppNumber(int pppNumber)
pppNumber - - PPP number as intpublic int getProfileID()
intpublic void setProfileID(int id)
id - - PDP profile ID as intpublic ModemConfig.PdpType getPdpType()
ModemConfig.PdpTypepublic void setPdpType(ModemConfig.PdpType pdpType)
pdpType - - PDP type as ModemConfig.PdpTypepublic java.lang.String getApn()
Stringpublic void setApn(java.lang.String apn)
apn - - access point name as Stringpublic IPAddress getIpAddress()
IPAddresspublic void setIpAddress(IPAddress address)
address - - IP address as IPAddresspublic int getDataCompression()
intpublic void setDataCompression(int dataCompression)
dataCompression - - PDP data compression as intpublic int getHeaderCompression()
intpublic void setHeaderCompression(int headerCompression)
headerCompression - headerCompression PDP header compression as intpublic boolean isDataCompression()
booleanpublic boolean isHeaderCompression()
booleanpublic boolean isGpsEnabled()
public int getResetTimeout()
public void setResetTimeout(int tout)
public void setGpsEnabled(boolean gpsEnabled)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object